Commit c271c861 authored by Volker Lendecke's avatar Volker Lendecke Committed by Gerald (Jerry) Carter
Browse files

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

:-)

Volker
(This used to be commit 91296a6003417e8704114ea63511c2c9201da122)
parent 0d6acfe1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -275,7 +275,11 @@ enum winbindd_result winbindd_pam_auth(struct winbindd_cli_state *state)
		
	} while ( (attempts < 2) && retry );

        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)) {
		netsamlogon_cache_store( cli->mem_ctx, &info3 );