git.samba.org
/
kamenim
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: In make_server_info_info3, check the result of copy_netr_SamInfo3
[kamenim/samba.git]
/
source3
/
auth
/
auth_util.c
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index d8e838721ee1c758d2a40c7a08051cb06ac2e1fe..837e58bb84a0689fffdcf6f96eaa9df1fae455b1 100644
(file)
--- a/
source3/auth/auth_util.c
+++ b/
source3/auth/auth_util.c
@@
-1111,6
+1111,10
@@
NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
/* copy in the info3 */
result->info3 = i3 = copy_netr_SamInfo3(result, info3);
+ if (result->info3 == NULL) {
+ TALLOC_FREE(result);
+ return NT_STATUS_NO_MEMORY;
+ }
/* Fill in the unix info we found on the way */
result->utok.uid = pwd->pw_uid;