Skip to content
Snippets Groups Projects
Commit 9968a91a authored by Dirk Loss's avatar Dirk Loss
Browse files

Fixed console redirection bug in sniff()

This was left-over from the old console handling
code in Scapy-win. Now this caused a NameError:
"global name 'console' is not defined"
parent 540caf9c
No related branches found
No related tags found
No related merge requests found
...@@ -518,7 +518,7 @@ L2socket: use the provided L2socket ...@@ -518,7 +518,7 @@ L2socket: use the provided L2socket
if prn: if prn:
r = prn(p) r = prn(p)
if r is not None: if r is not None:
print >> console, r print r
if count > 0 and c >= count: if count > 0 and c >= count:
break break
except KeyboardInterrupt: except KeyboardInterrupt:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment