mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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:
parent
2d77b66efb
commit
714dabb963
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56228
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user