mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
smbd: Fix CID 1438245 Dereference before null check
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
60c0a2b384
commit
01d9be2787
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user