1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libcli/security: conditional ACEs check again for NULL/empty claims

CID 1545152.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2023-09-29 12:24:14 +13:00 committed by Andrew Bartlett
parent 6af1a71752
commit 272f26e3ad

View File

@ -830,6 +830,15 @@ static bool token_claim_lookup(
return false;
}
if (num_claims == 0) {
DBG_NOTICE("There are no type %u claims\n", op->type);
return false;
}
if (claims == NULL) {
DBG_ERR("Type %u claim list unexpectedly NULL!\n", op->type);
result->type = CONDITIONAL_ACE_SAMBA_RESULT_ERROR;
return false;
}
/*
* Loop backwards: a later claim will override an earlier one with the
* same name.