diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-18 09:02:19 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-18 09:02:19 +0000 |
| commit | 714dabb963d0fc62a7bea0e56c02ddbfaec491fc (patch) | |
| tree | d51f28df16f197933430a7016ab8770cee222053 /sys/netinet6/udp6_usrreq.c | |
| parent | 2d77b66efb7cf73eb398f5d890b6ae7d063412bd (diff) | |
Notes
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
| -rw-r--r-- | sys/netinet6/udp6_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index 9e5c65da7a88..15ba9a2a3911 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -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) { |
