diff options
author | 2003-02-17 06:58:27 +0000 | |
---|---|---|
committer | 2003-02-17 06:58:27 +0000 | |
commit | 552106b1d8de9dbbf84f18b70ba5d7e2fba881c9 (patch) | |
tree | ac15ed646779cba062700e190d1cd0a2aa0011f0 | |
parent | -#include <sys/ioctl.h> (diff) | |
download | wireguard-openbsd-552106b1d8de9dbbf84f18b70ba5d7e2fba881c9.tar.xz wireguard-openbsd-552106b1d8de9dbbf84f18b70ba5d7e2fba881c9.zip |
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); |