1
0
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:
Volker Lendecke 2020-01-02 12:41:16 +01:00 committed by Gary Lockyer
parent 7283413a3f
commit b2f0703493

View File

@ -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";