[netfilter-cvslog] r4181 - trunk/libnfnetlink_log/utils

laforge at netfilter.org laforge at netfilter.org
Sat Jul 30 11:31:34 CEST 2005


Author: laforge at netfilter.org
Date: 2005-07-30 11:31:34 +0200 (Sat, 30 Jul 2005)
New Revision: 4181

Modified:
   trunk/libnfnetlink_log/utils/nfulnl_test.c
Log:
don't abort when recv returns 0


Modified: trunk/libnfnetlink_log/utils/nfulnl_test.c
===================================================================
--- trunk/libnfnetlink_log/utils/nfulnl_test.c	2005-07-30 09:31:09 UTC (rev 4180)
+++ trunk/libnfnetlink_log/utils/nfulnl_test.c	2005-07-30 09:31:34 UTC (rev 4181)
@@ -24,7 +24,7 @@
 	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");
 	}
 




More information about the netfilter-cvslog mailing list