diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index 222854b9d..53bcdadc8 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -179,7 +179,7 @@ def sndrcv(pks, pkt, timeout=None, inter=0, verbose=None, chainCC=False, autostop = 0 while retry >= 0: - if timeout < 0: + if timeout is not None and timeout < 0: timeout = None stopevent = threading.Event()