summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet6/ip6_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_ipsec.c b/sys/netinet6/ip6_ipsec.c
index 5d214dea..21aafe1 100644
--- a/sys/netinet6/ip6_ipsec.c
+++ b/sys/netinet6/ip6_ipsec.c
@@ -300,7 +300,7 @@ ip6_ipsec_output(struct mbuf **m, struct inpcb *inp, int *flags, int *error,
ipseclog((LOG_DEBUG,
"%s: we do not support IPv4 over IPv6", __func__));
/* XXX: in_delayed_cksum() expects net byte order */
- ip = mtod(m, struct ip *);
+ ip = mtod(*m, struct ip *);
ip->ip_len = htons(ip->ip_len);
in_delayed_cksum(*m);
ip->ip_len = ntohs(ip->ip_len);
OpenPOWER on IntegriCloud