Commit 829f10ba authored by Gerald Carter's avatar Gerald Carter Committed by Gerald (Jerry) Carter
Browse files

r333: other half of fix for winbindd crask from gd@suse.de

(This used to be commit f902d52c82c31d38157d4f1c77c27ee1c395afc3)
parent 6f3fe3a8
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ static NTSTATUS check_info3_in_group(TALLOC_CTX *mem_ctx,
	}
	
	if (!string_to_sid(&required_membership_sid, group_sid)) {
		DEBUG(0, ("winbindd_pam_auth: could not parse %s as a SID!", 
		DEBUG(0, ("check_info3_in_group: could not parse %s as a SID!", 
			  group_sid));

		return NT_STATUS_INVALID_PARAMETER;
@@ -530,7 +530,11 @@ enum winbindd_result winbindd_pam_auth_crap(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 );