summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-07-21 16:40:05 +0000
committerdm <dm@cvs.openbsd.org>1996-07-21 16:40:05 +0000
commit9ed58b9939fbb1691e61761b51324d562e62fa94 (patch)
tree39578d4b94708112e803d043514734965687e0f6
parent2caa172cc05c0bcfc55223ffd67c1621572cc268 (diff)
Correct fix for -Fa brokenness.
-rw-r--r--sbin/ipf/ipf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipf/ipf.c b/sbin/ipf/ipf.c
index af7f100911b..91689a2d548 100644
--- a/sbin/ipf/ipf.c
+++ b/sbin/ipf/ipf.c
@@ -36,7 +36,7 @@ extern char *index();
#ifndef lint
static char sccsid[] = "@(#)ipf.c 1.23 6/5/96 (C) 1993-1995 Darren Reed";
-static char rcsid[] = "$Id: ipf.c,v 1.5 1996/07/18 05:11:01 dm Exp $";
+static char rcsid[] = "$Id: ipf.c,v 1.6 1996/07/21 16:40:04 dm Exp $";
#endif
#if SOLARIS
@@ -294,7 +294,7 @@ char *arg;
fl |= (opts & FR_INACTIVE);
rem = fl;
- if (opendevice() == -2 || ioctl(fd, SIOCIPFFL, &fl) == -1)
+ if (opendevice() != -2 && ioctl(fd, SIOCIPFFL, &fl) == -1)
perror("ioctl(SIOCIPFFL)");
if ((opts & (OPT_DONOTHING|OPT_VERBOSE)) == OPT_VERBOSE) {
printf("remove flags %s%s (%d)\n", (rem & FR_INQUE) ? "I" : "",