File PyPAM-CVE-2012-1502.patch of Package python-pam.openSUSE_12.1_Update
Index: PAMmodule.c
===================================================================
--- PAMmodule.c
+++ 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
}