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.5.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d9be278796e6ce73dd48939118ca492f08445c;p=thirdparty%2Fsamba.git smbd: Fix CID 1438245 Dereference before null check 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;