1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r16150: Fix possible NULL dereference found by Klocwork ID # 17

This commit is contained in:
Volker Lendecke 2006-06-12 11:03:49 +00:00 committed by Gerald (Jerry) Carter
parent a1fcacf756
commit 3159bd3a4e

View File

@ -1243,10 +1243,9 @@ NTSTATUS make_server_info_pw(auth_serversupplied_info **server_info,
}
result = make_server_info(NULL);
if (!NT_STATUS_IS_OK(status)) {
if (result == NULL) {
TALLOC_FREE(sampass);
return status;
return NT_STATUS_NO_MEMORY;
}
result->sam_account = sampass;