summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet6/in6_src.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c
index 934ff15..ffc4c63 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,
OpenPOWER on IntegriCloud