From 6f0faf38597080daca367d741903a99464e32760 Mon Sep 17 00:00:00 2001 From: gpotter2 <10530980+gpotter2@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:28:06 +0200 Subject: [PATCH] Fix GH4550 (#4561) --- scapy/volatile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scapy/volatile.py b/scapy/volatile.py index b60e1a018a7..1500840c909 100644 --- a/scapy/volatile.py +++ b/scapy/volatile.py @@ -577,6 +577,7 @@ def __init__(self, size, term): # type: (Union[int, RandNum], bytes) -> None self.term = bytes_encode(term) super(RandTermString, self).__init__(size=size) + self.chars = self.chars.replace(self.term, b"") def _command_args(self): # type: () -> str