mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
tests/krb5: Simplify logic
This code can be made part of the previous 'else' branch. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Joseph Sutton <jsutton@samba.org> Autobuild-Date(master): Fri Mar 18 00:11:25 UTC 2022 on sn-devel-184
This commit is contained in:
parent
a9025b68b2
commit
c91af5f1a8
@ -2756,11 +2756,11 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
expect_pac_attrs_pac_request = kdc_exchange_dict[
|
||||
'pac_request']
|
||||
|
||||
if expect_pac_attrs is None:
|
||||
if self.expect_extra_pac_buffers:
|
||||
expect_pac_attrs = expect_extra_pac_buffers
|
||||
else:
|
||||
require_strict.add(krb5pac.PAC_TYPE_ATTRIBUTES_INFO)
|
||||
if expect_pac_attrs is None:
|
||||
if self.expect_extra_pac_buffers:
|
||||
expect_pac_attrs = expect_extra_pac_buffers
|
||||
else:
|
||||
require_strict.add(krb5pac.PAC_TYPE_ATTRIBUTES_INFO)
|
||||
if expect_pac_attrs:
|
||||
expected_types.append(krb5pac.PAC_TYPE_ATTRIBUTES_INFO)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user