diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2003-02-17 06:58:28 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2003-02-17 06:58:28 +0000 |
commit | 2ed5d0a1336c5d083b875b96817b82d5b1f88a39 (patch) | |
tree | f8f5664cac4e83712694e7cbf8662462a2f17c1e | |
parent | f33104d61a9ef6d1ca6cb6edf8c831f77e46344e (diff) |
We want err() after failed ioctl() here too.
mcbride@, dhartmei@ ok
-rw-r--r-- | sbin/pfctl/pfctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 26f337a0fef..853d65ce15c 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.149 2003/02/14 17:17:27 henning Exp $ */ +/* $OpenBSD: pfctl.c,v 1.150 2003/02/17 06:58:27 mpech Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1118,7 +1118,7 @@ pfctl_set_logif(struct pfctl *pf, char *ifname) errx(1, "pfctl_set_logif: strlcpy"); } if (ioctl(pf->dev, DIOCSETSTATUSIF, &pi)) - return (1); + err(1, "DIOCSETSTATUSIF"); } } return (0); |