Merge a bug fix from freebsd-current; check m != NULL before touching it,

at udp6_ctlinput().
  There should be kernel panic at PCCARD suspend etc, before this bug fix.

Submitted by:  Hajimu UMEMOTO <ume@mahoroba.org>
This commit is contained in:
Yoshinobu Inoue 2000-01-18 09:02:19 +00:00
parent 2d77b66efb
commit 714dabb963
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56228

View File

@ -427,7 +427,7 @@ udp6_ctlinput(cmd, sa, d)
/* translate addresses into internal form */
sa6 = *(struct sockaddr_in6 *)sa;
if (IN6_IS_ADDR_LINKLOCAL(&sa6.sin6_addr))
if (m != NULL && IN6_IS_ADDR_LINKLOCAL(&sa6.sin6_addr))
sa6.sin6_addr.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);
if (ip6) {