mirror of https://github.com/OISF/suricata
pcap: fix return check
The check that meant to check if pcap_dispatch processed fewer packets
than the desired number was inaccurate. It would also include all errors
(negative return values).
This patch considers only positive values for this check.
Fixes: 9fe08f2374 ("pcap: improve pcap_breakloop support")
pull/8716/head
parent
5f52b199ff
commit
2ddd26446e
Loading…
Reference in New Issue