summaryrefslogtreecommitdiff
path: root/sys/netinet6/udp6_usrreq.c
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-01-18 09:02:19 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-01-18 09:02:19 +0000
commit714dabb963d0fc62a7bea0e56c02ddbfaec491fc (patch)
treed51f28df16f197933430a7016ab8770cee222053 /sys/netinet6/udp6_usrreq.c
parent2d77b66efb7cf73eb398f5d890b6ae7d063412bd (diff)
Notes
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-rw-r--r--sys/netinet6/udp6_usrreq.c2
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) {