Page MenuHomeFreeBSD

D53453.id165354.diff
No OneTemporary

D53453.id165354.diff

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
@@ -2212,7 +2212,6 @@
/* Report real length of the packet */
uio->uio_resid -= m_length(m, NULL) - len;
}
- *flagsp |= MSG_TRUNC;
} else
*flagsp &= ~MSG_TRUNC;
}
@@ -3216,11 +3215,9 @@
#endif
LIST_REMOVE(unp, unp_reflink);
UNP_REF_LIST_UNLOCK();
- if (so) {
- SOCK_LOCK(so);
- so->so_state &= ~SS_ISCONNECTED;
- SOCK_UNLOCK(so);
- }
+ SOCK_LOCK(so);
+ so->so_state &= ~SS_ISCONNECTED;
+ SOCK_UNLOCK(so);
break;
case SOCK_STREAM:

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 2:09 AM (8 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31879605
Default Alt Text
D53453.id165354.diff (599 B)

Event Timeline