mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s4:kdc: Handle invalid enum values
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
39340f6518
commit
3ef5e6554b
@ -838,6 +838,8 @@ static NTSTATUS samba_add_asserted_identity(enum samba_asserted_identity ai,
|
|||||||
break;
|
break;
|
||||||
case SAMBA_ASSERTED_IDENTITY_IGNORE:
|
case SAMBA_ASSERTED_IDENTITY_IGNORE:
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
|
default:
|
||||||
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dom_sid_parse(sid_str, &ai_sid)) {
|
if (!dom_sid_parse(sid_str, &ai_sid)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user