summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2021-02-23 11:44:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2021-02-23 11:44:54 +0000
commit3fe44c6a42d5cec7904520de54eed798a8338d7b (patch)
tree0565f21f833faaccc8e4c76686e7c46abd2a4c6a
parent534131f4939d018fa1acb99a94149697d0a4aac7 (diff)
small adjustment of the deck chairs, no functional change.
-rw-r--r--sys/net/if_bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 3b526e6b74f..991f753fca8 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.350 2021/02/23 09:51:08 dlg Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.351 2021/02/23 11:44:53 dlg Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1555,7 +1555,7 @@ bridge_ipsec(struct ifnet *ifp, struct ether_header *eh, int hassnap,
case IPPROTO_IPCOMP:
m_copydata(m, hlen + sizeof(u_int16_t),
sizeof(u_int16_t), (caddr_t)&cpi);
- spi = ntohl(htons(cpi));
+ spi = htonl(ntohs(cpi));
break;
}