diff options
author | 2009-08-01 22:45:39 +0000 | |
---|---|---|
committer | 2009-08-01 22:45:39 +0000 | |
commit | 5a69e521ef7d41a0f9863ae9579634fb7141701d (patch) | |
tree | b23606c5eef27006e16edc0cf6d5406543332d1f /sys-auth/pam_ssh/files | |
parent | Use xfconf.eclass. (diff) | |
download | gentoo-2-5a69e521ef7d41a0f9863ae9579634fb7141701d.tar.gz gentoo-2-5a69e521ef7d41a0f9863ae9579634fb7141701d.tar.bz2 gentoo-2-5a69e521ef7d41a0f9863ae9579634fb7141701d.zip |
Add patch to avoid doublefree, thanks to TGL in bug #279538.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/pam_ssh/files')
-rw-r--r-- | sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch b/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch new file mode 100644 index 000000000000..2f63ff8bdcb0 --- /dev/null +++ b/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch @@ -0,0 +1,20 @@ +--- pam_ssh-1.97/pam_ssh.c.orig 2009-08-01 20:11:00.000000000 +0200 ++++ pam_ssh-1.97/pam_ssh.c 2009-08-01 20:11:16.000000000 +0200 +@@ -627,7 +627,7 @@ + * than the file creation time */ + if (retval = stat(per_agent, &stat_buf)) { + pam_ssh_log(LOG_ERR, "stat() failed on %s", per_agent); +- free(per_agent); ++ pam_set_data(pamh, "ssh_agent_env_agent", NULL, NULL); + fclose(env_read); + return retval; + } +@@ -646,7 +646,7 @@ + if (start_agent) { + if ((env_write = open(per_agent, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { + pam_ssh_log(LOG_ERR, "can't write to %s", per_agent); +- free(per_agent); ++ pam_set_data(pamh, "ssh_agent_env_agent", NULL, NULL); + openpam_restore_cred(pamh); + return PAM_SERVICE_ERR; + } |