From beff484b06db62ab979eef64896d9416a74f4391 Mon Sep 17 00:00:00 2001 From: bms Date: Sat, 10 Feb 2007 12:25:19 +0000 Subject: 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(-) (limited to 'sys/netinet6') diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index d2cb1b7..ea553b5 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 -- cgit v1.1