From: Isaac Boukris Date: Tue, 15 Jan 2019 11:58:52 +0000 (+0200) Subject: sam.c: fix incorrect check of talloc_new() allocation X-Git-Tag: talloc-2.2.0~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce83b21be8aaa537ce3cb8e2ed0bc86f33024159;p=thirdparty%2Fsamba.git sam.c: fix incorrect check of talloc_new() allocation Signed-off-by: Isaac Boukris Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 709e901b45b..6253ad0445c 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -364,7 +364,7 @@ _PUBLIC_ NTSTATUS authsam_make_user_info_dc(TALLOC_CTX *mem_ctx, NT_STATUS_HAVE_NO_MEMORY(user_info_dc); tmp_ctx = talloc_new(user_info_dc); - if (user_info_dc == NULL) { + if (tmp_ctx == NULL) { TALLOC_FREE(user_info_dc); return NT_STATUS_NO_MEMORY; }