git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smbd: Fix CID 1438245 Dereference before null check
[vlendec/samba-autobuild/.git]
/
source3
/
smbd
/
nttrans.c
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index bad904b9eb8ab86db765470b2ed99d52e947a09a..68470766f77914620ac4dc660099d9625508eed0 100644
(file)
--- a/
source3/smbd/nttrans.c
+++ b/
source3/smbd/nttrans.c
@@
-2459,7
+2459,7
@@
static enum ndr_err_code extract_sids_from_buf(TALLOC_CTX *mem_ctx,
}
}
*sids = talloc_zero_array(mem_ctx, struct dom_sid, i);
- if (
!sids
) {
+ if (
*sids == NULL
) {
DBG_ERR("OOM\n");
err = NDR_ERR_ALLOC;
goto done;