diff options
| author | Jonathan T. Looney <jtl@FreeBSD.org> | 2017-05-30 14:41:31 +0000 |
|---|---|---|
| committer | Jonathan T. Looney <jtl@FreeBSD.org> | 2017-05-30 14:41:31 +0000 |
| commit | fb04394554fade10d2da72e3d166fec59bb7d2bc (patch) | |
| tree | c08283070de5265531cd93993b1ad5b5c249f6d1 | |
| parent | 382a6bbcf1ac37ba61723f59f8d16e465cc31bd5 (diff) | |
Notes
| -rw-r--r-- | sys/netinet6/icmp6.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index bd6e1d373a92..c6084d68b663 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -597,9 +597,9 @@ icmp6_input(struct mbuf **mp, int *offp, int proto) sizeof(*nicmp6)); noff = off; } - nicmp6->icmp6_type = ICMP6_ECHO_REPLY; - nicmp6->icmp6_code = 0; if (n) { + nicmp6->icmp6_type = ICMP6_ECHO_REPLY; + nicmp6->icmp6_code = 0; ICMP6STAT_INC(icp6s_reflect); ICMP6STAT_INC(icp6s_outhist[ICMP6_ECHO_REPLY]); icmp6_reflect(n, noff); @@ -689,6 +689,7 @@ icmp6_input(struct mbuf **mp, int *offp, int proto) */ m_free(n); n = NULL; + break; } maxhlen = M_TRAILINGSPACE(n) - (sizeof(*nip6) + sizeof(*nicmp6) + 4); |
