summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2006-09-13 06:58:40 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2006-09-13 06:58:40 +0000
commit689f94bfe61a6eb3b8ca93e93478e510913c076b (patch)
tree72548a0bd3d542a45b2487e7165f00aa527227ed
parent488633c7f4d2d21e126c5e1b7a4770ed290bfe4c (diff)
Notes
-rw-r--r--sys/kern/uipc_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index c9da6b8e87f6..480bde885600 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)