summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/nfulnl_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nfulnl_test.c b/utils/nfulnl_test.c
index bfcfaf9..06db38f 100644
--- a/utils/nfulnl_test.c
+++ b/utils/nfulnl_test.c
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
nfulnl_bind_group(&h, &qh100, 100);
nfulnl_set_mode(&qh, NFULNL_COPY_PACKET, 0xffff);
- while (recv(h.nfnlh.fd, buf, sizeof(buf), 0) > 0) {
+ while (recv(h.nfnlh.fd, buf, sizeof(buf), 0) >= 0) {
printf("pkt received\n");
}