diff options
author | ume <ume@FreeBSD.org> | 2010-08-20 17:52:49 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2010-08-20 17:52:49 +0000 |
commit | a9738fb2b395d0c304c9a1fcf56a05f4143d9afb (patch) | |
tree | 416fd62d3f5633ad1afabfff13520f6ac8bbfac9 | |
parent | 6f82627f9663e08b48251bc8ca8201c2356ea3cd (diff) | |
download | FreeBSD-src-a9738fb2b395d0c304c9a1fcf56a05f4143d9afb.zip FreeBSD-src-a9738fb2b395d0c304c9a1fcf56a05f4143d9afb.tar.gz |
optp may be NULL.
-rw-r--r-- | sys/netinet6/raw_ip6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 0e5e8e0..6c10fc5 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -434,7 +434,8 @@ rip6_output(m, va_alist) * XXX: we may still need to determine the zone later. */ if (!(so->so_state & SS_ISCONNECTED)) { - if (!optp->ip6po_pktinfo || !optp->ip6po_pktinfo->ipi6_ifindex) + if (!optp || !optp->ip6po_pktinfo || + !optp->ip6po_pktinfo->ipi6_ifindex) use_defzone = V_ip6_use_defzone; if (dstsock->sin6_scope_id == 0 && !use_defzone) scope_ambiguous = 1; |