From f5fb0bd0339e429529c0d6066bcf345d1b203b7a Mon Sep 17 00:00:00 2001 From: Pierre LALET Date: Wed, 4 Oct 2017 19:03:08 +0200 Subject: [PATCH] Python 3: fix sndrcv --- scapy/sendrecv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()