Skip to content

Commit 2199d5d

Browse files
committed
Fix case in Kerberos check
1 parent c16af5a commit 2199d5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scapy/layers/kerberos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3136,7 +3136,7 @@ def __init__(
31363136
if mode in [self.MODE.AS_REQ, self.MODE.GET_SALT]:
31373137
if not host:
31383138
raise ValueError("Invalid host")
3139-
if x509 is None and (not x509key or not ca):
3139+
if x509 is not None and (not x509key or not ca):
31403140
raise ValueError("Must provide both 'x509', 'x509key' and 'ca' !")
31413141
elif mode == self.MODE.TGS_REQ:
31423142
if not ticket:

0 commit comments

Comments
 (0)