Skip to content

Commit

Permalink
avoid repeated update of some fields
Browse files Browse the repository at this point in the history
  • Loading branch information
fouzhe authored and gpotter2 committed Feb 4, 2024
1 parent 6d785f9 commit 3abda53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scapy/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2577,6 +2577,7 @@ def fuzz(p, # type: _P
for key, val in new_default_fields.items()
}
q.default_fields.update(new_default_fields)
new_default_fields.clear()
# add the random values of the MultipleTypeFields
for name in multiple_type_fields:
fld = cast(MultipleTypeField, q.get_field(name))
Expand Down

0 comments on commit 3abda53

Please sign in to comment.