diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1170,8 +1170,10 @@ eor ? M_EOR : 0); if (__predict_false(error)) goto out2; - } else + } else { + uio = NULL; uipc_reset_kernel_mbuf(m, &mc); + } error = SOCK_IO_SEND_LOCK(so, SBLOCKWAIT(flags)); if (error)