commit:     619348cf84ad9c2e326bc097a2abff673b7c9e86
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 10 10:14:45 2012 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Feb 15 10:58:08 2013 +0000
URL:        https://gitweb.gentoo.org/dev/ulm.git/commit/?id=619348cf

Check for NULL pointer in response from conversation function.

 patchsets/pam_skey/1.1.5/03_all_null_response.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/patchsets/pam_skey/1.1.5/03_all_null_response.patch 
b/patchsets/pam_skey/1.1.5/03_all_null_response.patch
new file mode 100644
index 0000000..3518993
--- /dev/null
+++ b/patchsets/pam_skey/1.1.5/03_all_null_response.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/407591
+Check for NULL pointer in response from conversation function.
+
+--- pam_skey-1.1.5/pam_skey.c
++++ pam_skey/pam_skey.c
+@@ -266,5 +266,8 @@
+   else
+     return PAM_SERVICE_ERR;
+ 
++  if (*response == NULL)
++    return PAM_SERVICE_ERR;
++
+   return PAM_SUCCESS;
+ }

Reply via email to