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
This commit is contained in:
Bruce M Simpson 2007-02-10 12:25:19 +00:00
parent 99535caa41
commit 31a9460383
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166619

View File

@ -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