aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-snf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-snf.c b/pcap-snf.c
index 5a0e1f99..bc471836 100644
--- a/pcap-snf.c
+++ b/pcap-snf.c
@@ -131,7 +131,7 @@ snf_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
n = 0;
timeout = ps->snf_timeout;
- while (n < cnt || cnt <= 0) {
+ while (n < cnt || PACKET_COUNT_S_UNLIMITED(cnt)) {
/*
* Has "pcap_breakloop()" been called?
*/