summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-04-15 10:11:29 +0000
committermpi <mpi@openbsd.org>2015-04-15 10:11:29 +0000
commit033407794e8ff0df6f22e5fa7bc85790830883ae (patch)
tree32fb5b820a12abbfbb21435c6f0c54db63975fd2 /sys/net/if_tun.c
parentAdd the necessary glue to keep vlan(4) working while other pseudo-drivers (diff)
downloadwireguard-openbsd-033407794e8ff0df6f22e5fa7bc85790830883ae.tar.xz
wireguard-openbsd-033407794e8ff0df6f22e5fa7bc85790830883ae.zip
Fix a typo introduced in the niq_enqueue() conversion.
Should fix a panic reported by many on bugs@ and misc@. ok dlg@
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 542ba2d3883..c0e9ddcd2cb 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.136 2015/04/10 13:58:20 dlg Exp $ */
+/* $OpenBSD: if_tun.c,v 1.137 2015/04/15 10:11:29 mpi Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -897,7 +897,7 @@ tunwrite(dev_t dev, struct uio *uio, int ioflag)
return (EAFNOSUPPORT);
}
- if (niq_enqueue(ifq, m) != 0) {
+ if (niq_enqueue(ifq, top) != 0) {
ifp->if_collisions++;
return (ENOBUFS);
}