diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index d2cb1b761973..ea553b589f0b 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -684,7 +684,7 @@ icmp6_input(mp, offp, proto) n = NULL; } } - if (!m_dup_pkthdr(n, m, M_DONTWAIT)) { + if (n && !m_dup_pkthdr(n, m, M_DONTWAIT)) { /* * Previous code did a blind M_COPY_PKTHDR * and said "just for rcvif". If true, then