From: Volker Lendecke Date: Tue, 7 Aug 2018 20:50:52 +0000 (+0200) Subject: smbd: Fix CID 1438245 Dereference before null check X-Git-Tag: ldb-1.3.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e8fd5fd246a80e1a13a2bf3965d0335d4dc2c4;p=thirdparty%2Fsamba.git smbd: Fix CID 1438245 Dereference before null check BUG: https://bugzilla.samba.org/show_bug.cgi?id=13553 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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;