Index: uipc_socket.c =================================================================== RCS file: /usr/repo/src/sys/kern/uipc_socket.c,v retrieving revision 1.280 diff -u -p -r1.280 uipc_socket.c --- uipc_socket.c 18 Aug 2006 14:05:13 -0000 1.280 +++ uipc_socket.c 11 Sep 2006 17:58:40 -0000 @@ -1025,11 +1025,11 @@ sosend_dgram(so, addr, uio, top, control 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)