|
|
8f2528 |
diff -up openssh-7.4p1/pam_ssh_agent_auth-0.10.3/get_command_line.c.psaa-xfree openssh-7.4p1/pam_ssh_agent_auth-0.10.3/get_command_line.c
|
|
|
8f2528 |
--- openssh-7.4p1/pam_ssh_agent_auth-0.10.3/get_command_line.c.psaa-xfree 2017-02-13 16:06:46.260653300 +0100
|
|
|
8f2528 |
+++ openssh-7.4p1/pam_ssh_agent_auth-0.10.3/get_command_line.c 2017-02-13 16:07:22.228619884 +0100
|
|
|
8f2528 |
@@ -105,9 +105,9 @@ pamsshagentauth_free_command_line(char *
|
|
|
8f2528 |
{
|
|
|
8f2528 |
size_t i;
|
|
|
8f2528 |
for (i = 0; i < n_args; i++)
|
|
|
8f2528 |
- pamsshagentauth_xfree(argv[i]);
|
|
|
8f2528 |
+ free(argv[i]);
|
|
|
8f2528 |
|
|
|
8f2528 |
- pamsshagentauth_xfree(argv);
|
|
|
8f2528 |
+ free(argv);
|
|
|
8f2528 |
return;
|
|
|
8f2528 |
}
|
|
|
8f2528 |
|
|
|
8f2528 |
diff -up openssh-7.4p1/pam_ssh_agent_auth-0.10.3/iterate_ssh_agent_keys.c.psaa-xfree openssh-7.4p1/pam_ssh_agent_auth-0.10.3/iterate_ssh_agent_keys.c
|
|
|
8f2528 |
--- openssh-7.4p1/pam_ssh_agent_auth-0.10.3/iterate_ssh_agent_keys.c.psaa-xfree 2017-02-13 16:06:46.261653299 +0100
|
|
|
8f2528 |
+++ openssh-7.4p1/pam_ssh_agent_auth-0.10.3/iterate_ssh_agent_keys.c 2017-02-13 16:08:01.263583622 +0100
|
|
|
8f2528 |
@@ -170,7 +170,7 @@ pamsshagentauth_session_id2_gen(Buffer *
|
|
|
8f2528 |
/* pamsshagentauth_debug3("action: %s", action_logbuf); */
|
|
|
8f2528 |
pamsshagentauth_buffer_put_string(session_id2, action_agentbuf.buf + action_agentbuf.offset, action_agentbuf.end - action_agentbuf.offset);
|
|
|
8f2528 |
if (free_logbuf) {
|
|
|
8f2528 |
- pamsshagentauth_xfree(action_logbuf);
|
|
|
8f2528 |
+ free(action_logbuf);
|
|
|
8f2528 |
pamsshagentauth_buffer_free(&action_agentbuf);
|
|
|
8f2528 |
}
|
|
|
8f2528 |
/* pamsshagentauth_debug3("hostname: %s", hostname); */
|
|
|
8f2528 |
@@ -306,9 +306,9 @@ pamsshagentauth_find_authorized_keys(con
|
|
|
8f2528 |
if(userauth_pubkey_from_id(ruser, id, &session_id2)) {
|
|
|
8f2528 |
retval = 1;
|
|
|
8f2528 |
}
|
|
|
8f2528 |
- pamsshagentauth_xfree(id->filename);
|
|
|
8f2528 |
+ free(id->filename);
|
|
|
8f2528 |
pamsshagentauth_key_free(id->key);
|
|
|
8f2528 |
- pamsshagentauth_xfree(id);
|
|
|
8f2528 |
+ free(id);
|
|
|
8f2528 |
if(retval == 1)
|
|
|
8f2528 |
break;
|
|
|
8f2528 |
}
|
|
|
8f2528 |
diff -up openssh-7.4p1/pam_ssh_agent_auth-0.10.3/pam_user_key_allowed2.c.psaa-xfree openssh-7.4p1/pam_ssh_agent_auth-0.10.3/pam_user_key_allowed2.c
|
|
|
8f2528 |
--- openssh-7.4p1/pam_ssh_agent_auth-0.10.3/pam_user_key_allowed2.c.psaa-xfree 2017-02-13 16:06:46.261653299 +0100
|
|
|
8f2528 |
+++ openssh-7.4p1/pam_ssh_agent_auth-0.10.3/pam_user_key_allowed2.c 2017-02-13 16:08:25.507561099 +0100
|
|
|
8f2528 |
@@ -105,7 +105,7 @@ pamsshagentauth_check_authkeys_file(FILE
|
|
|
8f2528 |
fp = pamsshagentauth_key_fingerprint(found, SSH_FP_MD5, SSH_FP_HEX);
|
|
|
8f2528 |
pamsshagentauth_logit("Found matching %s key: %s",
|
|
|
8f2528 |
pamsshagentauth_key_type(found), fp);
|
|
|
8f2528 |
- pamsshagentauth_xfree(fp);
|
|
|
8f2528 |
+ free(fp);
|
|
|
8f2528 |
break;
|
|
|
8f2528 |
}
|
|
|
8f2528 |
}
|
|
|
8f2528 |
diff -up openssh-7.4p1/pam_ssh_agent_auth-0.10.3/userauth_pubkey_from_id.c.psaa-xfree openssh-7.4p1/pam_ssh_agent_auth-0.10.3/userauth_pubkey_from_id.c
|
|
|
8f2528 |
--- openssh-7.4p1/pam_ssh_agent_auth-0.10.3/userauth_pubkey_from_id.c.psaa-xfree 2017-02-13 16:06:46.261653299 +0100
|
|
|
8f2528 |
+++ openssh-7.4p1/pam_ssh_agent_auth-0.10.3/userauth_pubkey_from_id.c 2017-02-13 16:08:44.164543767 +0100
|
|
|
8f2528 |
@@ -93,9 +93,9 @@ userauth_pubkey_from_id(const char *ruse
|
|
|
8f2528 |
/* if(&b != NULL) */
|
|
|
8f2528 |
pamsshagentauth_buffer_free(&b);
|
|
|
8f2528 |
if(sig != NULL)
|
|
|
8f2528 |
- pamsshagentauth_xfree(sig);
|
|
|
8f2528 |
+ free(sig);
|
|
|
8f2528 |
if(pkblob != NULL)
|
|
|
8f2528 |
- pamsshagentauth_xfree(pkblob);
|
|
|
8f2528 |
+ free(pkblob);
|
|
|
8f2528 |
CRYPTO_cleanup_all_ex_data();
|
|
|
8f2528 |
return authenticated;
|
|
|
8f2528 |
}
|