summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-05-26 16:34:01 +1200
committerJule Anger <janger@samba.org>2022-07-27 10:52:36 +0000
commitf152afa74e8ea118e1ff1e526b3855aaaa5e575c (patch)
tree6de0edaa747e2661442327106563b554783236d1 /python
parent714cadfc4049454d76e37932377cfa3d9a6f464d (diff)
downloadsamba-f152afa74e8ea118e1ff1e526b3855aaaa5e575c.tar.gz
samba-f152afa74e8ea118e1ff1e526b3855aaaa5e575c.tar.bz2
samba-f152afa74e8ea118e1ff1e526b3855aaaa5e575c.zip
CVE-2022-32744 tests/krb5: Correctly handle specifying account kvno
The environment variable is a string, but we expect an integer. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15074 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/krb5/raw_testcase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py
index 7f9d9d17640..d0c28fb2002 100644
--- a/python/samba/tests/krb5/raw_testcase.py
+++ b/python/samba/tests/krb5/raw_testcase.py
@@ -759,7 +759,7 @@ class RawKerberosTest(TestCaseInTempDir):
fallback_default=False,
allow_missing=kvno_allow_missing)
if kvno is not None:
- c.set_kvno(kvno)
+ c.set_kvno(int(kvno))
aes256_key = self.env_get_var('AES256_KEY_HEX', prefix,
fallback_default=False,
allow_missing=aes256_allow_missing)