diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-07-09 16:33:21 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2008-07-09 16:33:21 +0000 |
| commit | a55b8b206826407ced58569d0142c479273be3dc (patch) | |
| tree | 5aacd0536234cf103364b2048ed3f01e30a5121d | |
| parent | 4d896055ce831f303d9b59d83e91243a6193f953 (diff) | |
Notes
| -rw-r--r-- | sys/netinet6/in6_src.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 934ff159c506..ffc4c635f704 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -188,10 +188,12 @@ in6_selectsrc(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, if (ifpp) *ifpp = NULL; - if (inp != NULL) + if (inp != NULL) { + INP_LOCK_ASSERT(inp); mopts = inp->in6p_moptions; - else + } else { mopts = NULL; + } /* * If the source address is explicitly specified by the caller, |
