1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r14305: fixed a memory leak and a break error

(This used to be commit c791db60c8)
This commit is contained in:
Andrew Tridgell 2006-03-13 06:56:07 +00:00 committed by Gerald (Jerry) Carter
parent 3ea60662fd
commit 27c9674455

View File

@ -197,6 +197,7 @@ static int smb_pam_conv(int num_msg, const struct pam_message **msg,
(*reply)[num].resp_retcode = PAM_SUCCESS;
(*reply)[num].resp = NULL;
DEBUG(4,("PAM Info message in conversation function: %s\n", (msg[num]->msg)));
break;
case PAM_ERROR_MSG:
(*reply)[num].resp_retcode = PAM_SUCCESS;
@ -205,6 +206,10 @@ static int smb_pam_conv(int num_msg, const struct pam_message **msg,
break;
default:
while (num > 0) {
SAFE_FREE((*reply)[num-1].resp);
num--;
}
SAFE_FREE(*reply);
*reply = NULL;
DEBUG(1,("Error: PAM subsystme sent an UNKNOWN message type to the conversation function!\n"));