git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6da3664
)
sam.c: fix incorrect check of talloc_new() allocation
author
Isaac Boukris
<iboukris@gmail.com>
Tue, 15 Jan 2019 11:58:52 +0000
(13:58 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 6 Mar 2019 03:16:15 +0000
(
03:16
+0000)
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/auth/sam.c
patch
|
blob
|
history
diff --git
a/source4/auth/sam.c
b/source4/auth/sam.c
index 709e901b45b1c52de584a5a159091e1f53c5c695..6253ad0445c4606d71fe937d471ee152376d09eb 100644
(file)
--- 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;
}