diff options
author | 2017-10-30 10:04:07 +0000 | |
---|---|---|
committer | 2017-10-30 10:04:07 +0000 | |
commit | f3682a07001b68395463ecc944037446ac9b2559 (patch) | |
tree | 486bf87d5e59f9ec854c598843c90dcce6ed08df | |
parent | In the subjectAltName comparison, the bzero before the while-loop was (diff) | |
download | wireguard-openbsd-f3682a07001b68395463ecc944037446ac9b2559.tar.xz wireguard-openbsd-f3682a07001b68395463ecc944037446ac9b2559.zip |
Exit printing an error message if SIOCSIFMEDIA fails.
from Jesper Wallin.
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 0d2bedbabe2..22db57d4ec2 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.348 2017/08/29 21:10:20 deraadt Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.349 2017/10/30 10:04:07 mpi Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -2449,7 +2449,7 @@ process_media_commands(void) ifr.ifr_media = media_current; if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0) - ; + err(1, "SIOCSIFMEDIA"); } /* ARGSUSED */ |