smbd: Fix CID 1438245 Dereference before null check
[vlendec/samba-autobuild/.git] / source3 / smbd / nttrans.c
index bad904b9eb8ab86db765470b2ed99d52e947a09a..68470766f77914620ac4dc660099d9625508eed0 100644 (file)
@@ -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;