File PyPAM-CVE-2012-1502.patch of Package python-pam.395

Index: PAMmodule.c
===================================================================
--- PAMmodule.c.orig
+++ PAMmodule.c
@@ -82,6 +82,7 @@ static int PyPAM_conv(int num_msg, const
         int resp_retcode = 0;
         if (!PyArg_ParseTuple(respTuple, "si", &resp_text, &resp_retcode)) {
             free(*resp);
+	    *resp=NULL;
             Py_DECREF(respList);
             return PAM_CONV_ERR; // FIXME responses filled before the error leak here
         }
openSUSE Build Service is sponsored by