diff options
author | 2017-03-08 09:19:45 +0000 | |
---|---|---|
committer | 2017-03-08 09:19:45 +0000 | |
commit | 6ef6c7c357d60024bf692ddc498b34d7acedd82f (patch) | |
tree | 737da46f007f37f82f66af1fd7d88bf72b464c90 /sys | |
parent | Enable em(4), ahci(4), nvme(4) and USB controllers attached to pci(4). (diff) | |
download | wireguard-openbsd-6ef6c7c357d60024bf692ddc498b34d7acedd82f.tar.xz wireguard-openbsd-6ef6c7c357d60024bf692ddc498b34d7acedd82f.zip |
Do not unset IFF_UP twice.
ok stsp@, claudio@, mikeb@, dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 1ae214fd5ad..c690c9281a9 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.489 2017/03/06 08:56:39 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.490 2017/03/08 09:19:45 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1499,8 +1499,6 @@ if_downall(void) if ((ifp->if_flags & IFF_UP) == 0) continue; if_down(ifp); - ifp->if_flags &= ~IFF_UP; - if (ifp->if_ioctl) { ifrq.ifr_flags = ifp->if_flags; (void) (*ifp->if_ioctl)(ifp, SIOCSIFFLAGS, |