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

r319: Fix a segfault in winbind. Thanks to Guenther Deschner for his valgrind log

:-)

Volker
(This used to be commit 91296a6003)
This commit is contained in:
Volker Lendecke 2004-04-21 16:15:59 +00:00 committed by Gerald (Jerry) Carter
parent 0d6acfe19a
commit c271c86180

View File

@ -274,8 +274,12 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
} }
} while ( (attempts < 2) && retry ); } while ( (attempts < 2) && retry );
clnt_deal_with_creds(cli->sess_key, &(cli->clnt_cred), &ret_creds); if (cli != NULL) {
/* We might have come out of the loop above with cli == NULL,
so don't dereference that. */
clnt_deal_with_creds(cli->sess_key, &(cli->clnt_cred), &ret_creds);
}
if (NT_STATUS_IS_OK(result)) { if (NT_STATUS_IS_OK(result)) {
netsamlogon_cache_store( cli->mem_ctx, &info3 ); netsamlogon_cache_store( cli->mem_ctx, &info3 );