diff options
author | laforge <laforge> | 2002-06-13 12:56:53 +0000 |
---|---|---|
committer | laforge <laforge> | 2002-06-13 12:56:53 +0000 |
commit | 8ae82ce05dbcf171f9de1f62826b5922a9927b0f (patch) | |
tree | 9ce82a570750c2d7ceca9c399608194d56c7a69a /libipulog/ulog_test.c | |
parent | 952b71c03c83d6a238767cea4924bf771729c431 (diff) |
fix bug in ulog_test.c
Diffstat (limited to 'libipulog/ulog_test.c')
-rw-r--r-- | libipulog/ulog_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libipulog/ulog_test.c b/libipulog/ulog_test.c index c9ef9b7..c891764 100644 --- a/libipulog/ulog_test.c +++ b/libipulog/ulog_test.c @@ -1,4 +1,4 @@ -/* ulog_test, $Revision: 1.3 $ +/* ulog_test, $Revision: 1.4 $ * * small testing program for libipulog, part of the netfilter ULOG target * for the linux 2.4 netfilter subsystem. @@ -7,7 +7,7 @@ * * this code is released under the terms of GNU GPL * - * $Id: ulog_test.c,v 1.3 2000/09/22 06:57:16 laforge Exp $ + * $Id: ulog_test.c,v 1.4 2001/01/30 09:28:04 laforge Exp $ */ #include <stdio.h> @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) /* loop receiving packets and handling them over to handle_packet */ for (i = 0; i < atoi(argv[1]); i++) { len = ipulog_read(h, buf, MYBUFSIZ, 1); - if (len < 0) { + if (len <= 0) { ipulog_perror("ulog_test: short read"); exit(1); } |