Skip to content

Commit e73137e

Browse files
TLS: fix _TLSSignature show2 (#4878)
1 parent c211285 commit e73137e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/tls/keyexchange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class _TLSSignature(_GenericTLSSessionInheritance):
170170

171171
def __init__(self, *args, **kargs):
172172
super(_TLSSignature, self).__init__(*args, **kargs)
173-
if "sig_alg" not in kargs:
173+
if self.sig_alg is None and "sig_alg" not in kargs:
174174
# Default sig_alg
175175
self.sig_alg = 0x0804
176176
if self.tls_session and self.tls_session.tls_version:

0 commit comments

Comments
 (0)