diff options
author | bms <bms@FreeBSD.org> | 2007-02-10 12:25:19 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2007-02-10 12:25:19 +0000 |
commit | beff484b06db62ab979eef64896d9416a74f4391 (patch) | |
tree | 038652ac4b15615aa95571237dd249cc14f8bf03 /sys/netinet6/icmp6.c | |
parent | 8f30a62d60032f11421cc23b2eca1112a579522c (diff) | |
download | FreeBSD-src-beff484b06db62ab979eef64896d9416a74f4391.zip FreeBSD-src-beff484b06db62ab979eef64896d9416a74f4391.tar.gz |
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
Diffstat (limited to 'sys/netinet6/icmp6.c')
-rw-r--r-- | sys/netinet6/icmp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |