mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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>
This commit is contained in:
parent
714cadfc40
commit
f152afa74e
@ -759,7 +759,7 @@ class RawKerberosTest(TestCaseInTempDir):
|
|||||||
fallback_default=False,
|
fallback_default=False,
|
||||||
allow_missing=kvno_allow_missing)
|
allow_missing=kvno_allow_missing)
|
||||||
if kvno is not None:
|
if kvno is not None:
|
||||||
c.set_kvno(kvno)
|
c.set_kvno(int(kvno))
|
||||||
aes256_key = self.env_get_var('AES256_KEY_HEX', prefix,
|
aes256_key = self.env_get_var('AES256_KEY_HEX', prefix,
|
||||||
fallback_default=False,
|
fallback_default=False,
|
||||||
allow_missing=aes256_allow_missing)
|
allow_missing=aes256_allow_missing)
|
||||||
|
Loading…
Reference in New Issue
Block a user