1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tests/krb5: Have modified_ticket() not modify its arguments

Inexplicable behaviour could result when the same arguments were passed
in across multiple calls.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-28 13:52:47 +12:00 committed by Andrew Bartlett
parent b4a2e64110
commit 357b520b37

View File

@ -5551,6 +5551,8 @@ class RawKerberosTest(TestCase):
# A dict containing a key for each checksum type to be created in
# the PAC.
checksum_keys = {}
else:
checksum_keys = dict(checksum_keys)
if include_checksums is None:
# A dict containing a value for each checksum type; True if the
@ -5558,6 +5560,8 @@ class RawKerberosTest(TestCase):
# excluded, or None/not present if the checksum is to be included
# based on its presence in the original PAC.
include_checksums = {}
else:
include_checksums = dict(include_checksums)
# Check that the values passed in by the caller make sense.