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:
parent
a1fcacf756
commit
3159bd3a4e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user