Skip to content

Commit

Permalink
Merge pull request #181 from MattCarothers/fix_python_string_copy_crash
Browse files Browse the repository at this point in the history
Fix a crash bug related to copying strings
  • Loading branch information
john-althouse authored Nov 8, 2024
2 parents a554742 + 0f8cf77 commit 3f37b93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ja4x.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def to_ja4x(x, debug_stream=-1):
# Get issuer name from CN and ON by scanning the sequence.
# This is very specific to the way tshark holds the sequence.
if 'printable_certs' in x:
certs = x['printable_certs'].copy()
issuers = x['issuers'].copy()
subjects = x['subjects'].copy()
certs = str(x['printable_certs'])
issuers = str(x['issuers'])
subjects = str(x['subjects'])
idx = 1
for _i, _s in zip(issuers, subjects):
remove_oids(_i, ['550406', '55040b'])
Expand Down

0 comments on commit 3f37b93

Please sign in to comment.