1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Acquire socket lock around frobbing of socket state in divert sockets.

This commit is contained in:
Robert Watson 2004-06-22 04:00:51 +00:00
parent ffcbc0e4c5
commit bb7479a613
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130901

View File

@ -419,7 +419,9 @@ div_attach(struct socket *so, int proto, struct thread *td)
/* The socket is always "connected" because
we always know "where" to send the packet */
INP_UNLOCK(inp);
SOCK_LOCK(so);
so->so_state |= SS_ISCONNECTED;
SOCK_UNLOCK(so);
return 0;
}