diff options
| author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2023-08-21 13:51:27 +1200 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2023-09-14 21:35:29 +0000 |
| commit | 3ef5e6554b9847740910c774bf6b81d5957e40d9 (patch) | |
| tree | 5a4286e4984250de8436f24c8b494dab743914d8 /source4 | |
| parent | 39340f6518933e6de70ac19d97d0124009ed75af (diff) | |
| download | samba-3ef5e6554b9847740910c774bf6b81d5957e40d9.tar.gz samba-3ef5e6554b9847740910c774bf6b81d5957e40d9.tar.bz2 samba-3ef5e6554b9847740910c774bf6b81d5957e40d9.zip | |
s4:kdc: Handle invalid enum values
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
| -rw-r--r-- | source4/kdc/pac-glue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index 1a551191e59..44e3b931ee0 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -838,6 +838,8 @@ static NTSTATUS samba_add_asserted_identity(enum samba_asserted_identity ai, break; case SAMBA_ASSERTED_IDENTITY_IGNORE: return NT_STATUS_OK; + default: + return NT_STATUS_INVALID_PARAMETER; } if (!dom_sid_parse(sid_str, &ai_sid)) { |
