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:
parent
6af1a71752
commit
272f26e3ad
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user