Skip to content
Snippets Groups Projects
Commit f9cd967b authored by Dmitriy Dubson's avatar Dmitriy Dubson
Browse files

[bug] fix issue with python-pcapy interface next() function not properly...

[bug] fix issue with python-pcapy interface next() function not properly catching if next packet does not exist.
parent 4b8e850c
No related branches found
No related tags found
No related merge requests found
...@@ -390,6 +390,8 @@ if conf.use_pcap: ...@@ -390,6 +390,8 @@ if conf.use_pcap:
return None return None
else: else:
h,p = c h,p = c
if h is None:
return
s,us = h.getts() s,us = h.getts()
return (s+0.000001*us), p return (s+0.000001*us), p
def fileno(self): def fileno(self):
......
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