Always hold the socket lock when calling sblock().
authormpi <mpi@openbsd.org>
Tue, 4 Jul 2017 12:58:32 +0000 (12:58 +0000)
committermpi <mpi@openbsd.org>
Tue, 4 Jul 2017 12:58:32 +0000 (12:58 +0000)
commitd20db565a1acd0c80aa52e672d95524cc0fe6a0c
tree8f15694905c05a1f1bcf5bfb3447fb06510456ca
parentdc8852d453bfd4dd3e2e27bbecbc38ee8ec071a1
Always hold the socket lock when calling sblock().

Implicitely protects `so_state' with the socket lock in sosend().

ok visa@, bluhm@
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/sys/socketvar.h