diff options
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index c9da6b8..480bde8 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1028,11 +1028,11 @@ sosend_dgram(so, addr, uio, top, control, flags, td) if (flags & MSG_OOB) space += 1024; space -= clen; + SOCKBUF_UNLOCK(&so->so_snd); if (resid > space) { error = EMSGSIZE; goto out; } - SOCKBUF_UNLOCK(&so->so_snd); if (uio == NULL) { resid = 0; if (flags & MSG_EOR) |