ip6_ipsec_output: fix a typo in r241344

Acting as a remote drone of glebius.
This commit is contained in:
Andriy Gapon 2012-10-08 13:45:40 +00:00
parent 4262463497
commit ce8b4f7cb9

View File

@ -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);