1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241349

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