Skip to content

Commit

Permalink
MFC r359154:
Browse files Browse the repository at this point in the history
Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
  • Loading branch information
markjdb authored and fichtner committed Jan 5, 2021
1 parent 18453fd commit bfdf8d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/netinet6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1542,10 +1542,10 @@ ip6_ctloutput(struct socket *so, struct sockopt *sopt)
error = soopt_mcopyin(sopt, m); /* XXX */
if (error != 0)
break;
INP_WLOCK(in6p);
error = ip6_pcbopts(&inp->in6p_outputopts,
m, so, sopt);
INP_WUNLOCK(in6p);
INP_WLOCK(inp);
error = ip6_pcbopts(&inp->in6p_outputopts, m,
so, sopt);
INP_WUNLOCK(inp);
m_freem(m); /* XXX */
break;
}
Expand Down

0 comments on commit bfdf8d5

Please sign in to comment.