Module Name: src
Committed By: joerg
Date: Fri Aug 28 12:17:41 UTC 2015
Modified Files:
src/dist/pf/sbin/pflogd: pflogd.c
Log Message:
Fix obviously broken condition.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/dist/pf/sbin/pflogd/pflogd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/pf/sbin/pflogd/pflogd.c
diff -u src/dist/pf/sbin/pflogd/pflogd.c:1.9 src/dist/pf/sbin/pflogd/pflogd.c:1.10
--- src/dist/pf/sbin/pflogd/pflogd.c:1.9 Wed Feb 29 23:42:28 2012
+++ src/dist/pf/sbin/pflogd/pflogd.c Fri Aug 28 12:17:41 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: pflogd.c,v 1.9 2012/02/29 23:42:28 joerg Exp $ */
+/* $NetBSD: pflogd.c,v 1.10 2015/08/28 12:17:41 joerg Exp $ */
/* $OpenBSD: pflogd.c,v 1.45 2007/06/06 14:11:26 henning Exp $ */
/*
@@ -729,7 +729,7 @@ main(int argc, char **argv)
np = pcap_dispatch(hpcap, PCAP_NUM_PKTS,
phandler, (u_char *)dpcap);
if (np < 0) {
- if (!if_exists(interface) == -1) {
+ if (!if_exists(interface)) {
logmsg(LOG_NOTICE, "interface %s went away",
interface);
ret = -1;