updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pam_ssh / empty-pw-segfault-gentoo.patch
blob80214a1df70ca5bdc773d294c851e69fe187b560
1 --- pam_ssh-1.92.orig/pam_get_pass.c 2004-02-19 19:59:05.000000000 +0100
2 +++ pam_ssh-1.92/pam_get_pass.c 2009-04-18 13:51:10.000000000 +0200
3 @@ -63,6 +63,8 @@
4 retval = conv->conv(1, msgs, &resp, conv->appdata_ptr);
5 if (retval != PAM_SUCCESS)
6 return retval;
7 + if (resp[0].resp == NULL)
8 + return PAM_AUTHTOK_RECOVERY_ERR;
9 retval = pam_set_item(pamh, PAM_AUTHTOK, resp[0].resp);
10 if (retval != PAM_SUCCESS)
11 return retval;