diff options
author | ume <ume@FreeBSD.org> | 2005-02-27 18:07:18 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-02-27 18:07:18 +0000 |
commit | 8a485418ea0767a0dad7ff528d3a9095bb429341 (patch) | |
tree | 088b4213c867ba02da3c0f77c05b9114eaaaac07 /sys | |
parent | 1837851b4bae1c0f33aeaa699c1b5d58dcd8bf3e (diff) | |
download | FreeBSD-src-8a485418ea0767a0dad7ff528d3a9095bb429341.zip FreeBSD-src-8a485418ea0767a0dad7ff528d3a9095bb429341.tar.gz |
initialized the last arg to ip6_process_hopopts(), because the recent
code requires it to be 0 when a jumbo payload option is contained.
PR: kern/77934
Submitted by: Gerd Rausch <gerd@juniper.net>
Obtained from: KAME
MFC after: 2 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/ip6_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 8f27aaf..30f5959 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -907,8 +907,8 @@ skip_ipsec2:; */ if (exthdrs.ip6e_hbh) { struct ip6_hbh *hbh = mtod(exthdrs.ip6e_hbh, struct ip6_hbh *); - u_int32_t dummy1; /* XXX unused */ - u_int32_t dummy2; /* XXX unused */ + u_int32_t dummy; /* XXX unused */ + u_int32_t plen = 0; /* XXX: ip6_process will check the value */ #ifdef DIAGNOSTIC if ((hbh->ip6h_len + 1) << 3 > exthdrs.ip6e_hbh->m_len) @@ -924,7 +924,7 @@ skip_ipsec2:; m->m_pkthdr.rcvif = ifp; if (ip6_process_hopopts(m, (u_int8_t *)(hbh + 1), ((hbh->ip6h_len + 1) << 3) - sizeof(struct ip6_hbh), - &dummy1, &dummy2) < 0) { + &dummy, &plen) < 0) { /* m was already freed at this point */ error = EINVAL;/* better error? */ goto done; |