Skip to content

Commit 6f0faf3

Browse files
authored
Fix GH4550 (#4561)
1 parent 93c9472 commit 6f0faf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scapy/volatile.py

+1
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ def __init__(self, size, term):
577577
# type: (Union[int, RandNum], bytes) -> None
578578
self.term = bytes_encode(term)
579579
super(RandTermString, self).__init__(size=size)
580+
self.chars = self.chars.replace(self.term, b"")
580581

581582
def _command_args(self):
582583
# type: () -> str

0 commit comments

Comments
 (0)