diff options
author | Volker Lendecke <vl@samba.org> | 2018-08-07 22:50:52 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-08-08 20:22:05 +0200 |
commit | 01d9be278796e6ce73dd48939118ca492f08445c (patch) | |
tree | 378fc56e82d658341870fb6c374d4c97cfaded08 /source3/smbd/nttrans.c | |
parent | 60c0a2b384d935e2ef6ffe5d167a423b1b2e7af8 (diff) | |
download | samba-01d9be278796e6ce73dd48939118ca492f08445c.tar.gz |
smbd: Fix CID 1438245 Dereference before null check
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index bad904b9eb8..68470766f77 100644 --- 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; |