diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-05-26 16:34:01 +1200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-07-24 11:42:01 +0200 |
commit | 6305a55870287191ce4268f6af7fe278ca7f2a30 (patch) | |
tree | 6773309db096fe47c4af8a7b6ebcda06faeb8064 | |
parent | f6c5a60336de8fd67a2ef371dd2ee4cf75c53904 (diff) | |
download | samba-6305a55870287191ce4268f6af7fe278ca7f2a30.tar.gz |
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>
-rw-r--r-- | python/samba/tests/krb5/raw_testcase.py | 2 |
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 a2241707d44..4120edf93b9 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -724,7 +724,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) |