aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/mld6.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2019-11-07 18:29:51 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2019-11-07 18:29:51 +0000
commit503f4e473661ab4daf41b2d76a16ba4689af62dc (patch)
treed2b86e4171d12d2566531259c8af75e1692e2e5c /sys/netinet6/mld6.c
parentc95f8ed885c69c2a3ba51af8bf04618fcf510653 (diff)
downloadsrc-503f4e473661ab4daf41b2d76a16ba4689af62dc.tar.gz
src-503f4e473661ab4daf41b2d76a16ba4689af62dc.zip
Notes
Diffstat (limited to 'sys/netinet6/mld6.c')
-rw-r--r--sys/netinet6/mld6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 868edeaff8c5..64cce5ece649 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -1260,8 +1260,6 @@ mld_input(struct mbuf *m, int off, int icmp6len)
ifp = m->m_pkthdr.rcvif;
- ip6 = mtod(m, struct ip6_hdr *);
-
/* Pullup to appropriate size. */
mld = (struct mld_hdr *)(mtod(m, uint8_t *) + off);
if (mld->mld_type == MLD_LISTENER_QUERY &&
@@ -1275,6 +1273,7 @@ mld_input(struct mbuf *m, int off, int icmp6len)
ICMP6STAT_INC(icp6s_badlen);
return (IPPROTO_DONE);
}
+ ip6 = mtod(m, struct ip6_hdr *);
/*
* Userland needs to see all of this traffic for implementing