From 31a9460383f1ebf8e65aadc01712b42968deeed0 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Sat, 10 Feb 2007 12:25:19 +0000 Subject: [PATCH] In the ICMP6 path to handle FQDN 'who-are-you' queries, check that the packet header mbuf is non-NULL before trying to create a duplicate of it. PR: 95957 Reviewed by: ume MFC after: 3 days --- sys/netinet6/icmp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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