Document required locking in in6_sleectsrc() in case an inp is

passed in by adding an assert.

Requested by:	rwatson
Reviewed by:	rwatson
This commit is contained in:
Bjoern A. Zeeb 2008-07-09 16:33:21 +00:00
parent 4d896055ce
commit a55b8b2068

View File

@ -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,