summaryrefslogtreecommitdiffstats
path: root/sys/net/if_bpe.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-05-21 10:08:13 +0000
committerdlg <dlg@openbsd.org>2019-05-21 10:08:13 +0000
commit7e627389a858c7de0b582afac504e9d4d421775b (patch)
treee6aee0ad3f074109d6bcec1e2cba7d7a139ea02a /sys/net/if_bpe.c
parentAlso apply stricter pledge when secure mode is set via rc file or command. (diff)
downloadwireguard-openbsd-7e627389a858c7de0b582afac504e9d4d421775b.tar.xz
wireguard-openbsd-7e627389a858c7de0b582afac504e9d4d421775b.zip
don't fall through SIOCSVNETID into SIOCGVNETID; CID 1480290
the cid was via jmatthew@
Diffstat (limited to 'sys/net/if_bpe.c')
-rw-r--r--sys/net/if_bpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_bpe.c b/sys/net/if_bpe.c
index c86f7810b6f..382fc90d073 100644
--- a/sys/net/if_bpe.c
+++ b/sys/net/if_bpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bpe.c,v 1.5 2019/04/23 10:53:45 dlg Exp $ */
+/* $OpenBSD: if_bpe.c,v 1.6 2019/05/21 10:08:13 dlg Exp $ */
/*
* Copyright (c) 2018 David Gwynne <dlg@openbsd.org>
*
@@ -468,6 +468,7 @@ bpe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCSVNETID:
error = bpe_set_vnetid(sc, ifr);
+ break;
case SIOCGVNETID:
ifr->ifr_vnetid = sc->sc_key.k_isid;
break;