We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c16af5a commit 2199d5dCopy full SHA for 2199d5d
1 file changed
scapy/layers/kerberos.py
@@ -3136,7 +3136,7 @@ def __init__(
3136
if mode in [self.MODE.AS_REQ, self.MODE.GET_SALT]:
3137
if not host:
3138
raise ValueError("Invalid host")
3139
- if x509 is None and (not x509key or not ca):
+ if x509 is not None and (not x509key or not ca):
3140
raise ValueError("Must provide both 'x509', 'x509key' and 'ca' !")
3141
elif mode == self.MODE.TGS_REQ:
3142
if not ticket:
0 commit comments