mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
auth3: Check for talloc failure
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
7283413a3f
commit
b2f0703493
@ -97,6 +97,10 @@ NTSTATUS auth_get_ntlm_challenge(struct auth_context *auth_context,
|
||||
generate_random_buffer(tmp, sizeof(tmp));
|
||||
auth_context->challenge = data_blob_talloc(auth_context,
|
||||
tmp, sizeof(tmp));
|
||||
if (auth_context->challenge.data == NULL) {
|
||||
DBG_WARNING("data_blob_talloc failed\n");
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
auth_context->challenge_set_by = "random";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user