summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-08-05 11:36:24 +0000
committermikeb <mikeb@openbsd.org>2016-08-05 11:36:24 +0000
commit1970447f147919089f8416f35f821b162710c139 (patch)
tree977e6801dcfd31413a6215b60a62c070cf229ca6
parentUse tighter pledge(2) restrictions. (diff)
downloadwireguard-openbsd-1970447f147919089f8416f35f821b162710c139.tar.xz
wireguard-openbsd-1970447f147919089f8416f35f821b162710c139.zip
Fixup the condition that prevented heartbeat & co. from attaching
-rw-r--r--sys/dev/pv/hyperv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c
index 94d21473a69..ddd21e3aceb 100644
--- a/sys/dev/pv/hyperv.c
+++ b/sys/dev/pv/hyperv.c
@@ -1628,7 +1628,7 @@ hv_attach_internal(struct hv_softc *sc)
int i;
TAILQ_FOREACH(ch, &sc->sc_channels, ch_entry) {
- if (ch->ch_state != HV_CHANSTATE_OPENED)
+ if (ch->ch_state != HV_CHANSTATE_OFFERED)
continue;
if (ch->ch_flags & CHF_MONITOR)
continue;