diff options
author | George V. Neville-Neil <gnn@FreeBSD.org> | 2005-05-15 02:28:30 +0000 |
---|---|---|
committer | George V. Neville-Neil <gnn@FreeBSD.org> | 2005-05-15 02:28:30 +0000 |
commit | 403cbcf59f3e33182e81fe2e52c4f44d4d6dabda (patch) | |
tree | 0bf3963d121c2edbe8546d00ad1b734f627e3ec4 /sys/netinet6/in6_src.c | |
parent | 1771f872d52e4cf9f8650dfd755f4e5d5bbd48a4 (diff) | |
download | src-403cbcf59f3e33182e81fe2e52c4f44d4d6dabda.tar.gz src-403cbcf59f3e33182e81fe2e52c4f44d4d6dabda.zip |
Fixes for various nits found by the Coverity tool.
In particular 2 missed return values and an inappropriate bcopy from
a possibly NULL pointer.
Reviewed by: jake
Approved by: rwatson
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=146228
Diffstat (limited to 'sys/netinet6/in6_src.c')
-rw-r--r-- | sys/netinet6/in6_src.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index a969d916b04e..812b03d66650 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -667,7 +667,7 @@ in6_selectroute(dstsock, opts, mopts, ro, retifp, retrt, clone) * (this may happen when we are sending a packet to one of * our own addresses.) */ - if (opts && opts->ip6po_pktinfo && + if (ifp && opts && opts->ip6po_pktinfo && opts->ip6po_pktinfo->ipi6_ifindex) { if (!(ifp->if_flags & IFF_LOOPBACK) && ifp->if_index != |