Line
Link Here
|
0 |
-- pam_skey-1.1.5-orig/pam_skey.c |
0 |
++ pam_skey-1.1.5/pam_skey.c |
Lines 214-219
Link Here
|
214 |
struct pam_conv *conv = NULL; |
214 |
struct pam_conv *conv = NULL; |
215 |
struct pam_response *presponse = NULL; |
215 |
struct pam_response *presponse = NULL; |
216 |
int i=0; |
216 |
int i=0; |
|
|
217 |
int status; |
217 |
|
218 |
|
218 |
/* Better safe than sorry */ |
219 |
/* Better safe than sorry */ |
219 |
*response = NULL; |
220 |
*response = NULL; |
Lines 244-255
Link Here
|
244 |
return PAM_SERVICE_ERR; |
245 |
return PAM_SERVICE_ERR; |
245 |
} |
246 |
} |
246 |
/* Convert into pam_response */ |
247 |
/* Convert into pam_response */ |
247 |
if (conv->conv(i, (const struct pam_message **)pmessage, &presponse, |
248 |
status = conv->conv(i, (const struct pam_message **)pmessage, |
248 |
conv->appdata_ptr) |
249 |
&presponse, conv->appdata_ptr); |
249 |
!= PAM_SUCCESS) |
250 |
if (status != PAM_SUCCESS) |
250 |
{ |
251 |
{ |
251 |
_pam_delete(presponse->resp); |
252 |
if (presponse != NULL) |
252 |
return PAM_SERVICE_ERR; |
253 |
_pam_delete(presponse->resp); |
|
|
254 |
return status; |
253 |
} |
255 |
} |
254 |
|
256 |
|
255 |
if (presponse != NULL) |
257 |
if (presponse != NULL) |