summaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-09-20 23:10:48 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-09-20 23:10:48 +0000
commit598965f9c64a17b4562dacf9709660bc4deb6883 (patch)
treee3c3d736ce666acf2bc4f3c1ecb0125f2a3a493e /sys/netipx
parent35c38721e4855a79151c5ffc498176931bbb5634 (diff)
Fix order of operations for m_gethdr(), found a bit ago, commit after second
prodding.
Diffstat (limited to 'sys/netipx')
-rw-r--r--sys/netipx/ipx_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c
index 249e23e699b..c2257d58cbd 100644
--- a/sys/netipx/ipx_ip.c
+++ b/sys/netipx/ipx_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_ip.c,v 1.18 2004/01/03 14:08:54 espie Exp $ */
+/* $OpenBSD: ipx_ip.c,v 1.19 2004/09/20 23:10:47 drahn Exp $ */
/*-
*
@@ -264,7 +264,7 @@ ipxipoutput(ifp, m, dst, rt)
/* following clause not necessary on vax */
if (3 & (long)m->m_data) {
/* force longword alignment of ip hdr */
- struct mbuf *m0 = m_gethdr(MT_HEADER, M_DONTWAIT);
+ struct mbuf *m0 = m_gethdr(M_DONTWAIT, MT_HEADER);
if (m0 == NULL) {
m_freem(m);
return (ENOBUFS);