Page MenuHomeFreeBSD

D24568.id70970.diff
No OneTemporary

D24568.id70970.diff

Index: kern/uipc_socket.c
===================================================================
--- kern/uipc_socket.c
+++ kern/uipc_socket.c
@@ -1557,8 +1557,10 @@
#endif
if (uio != NULL)
resid = uio->uio_resid;
- else
+ else if ((top->m_flags & M_PKTHDR) != 0)
resid = top->m_pkthdr.len;
+ else
+ resid = m_length(top, NULL);
/*
* In theory resid should be unsigned. However, space must be
* signed, as it might be less than 0 if we over-committed, and we

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 29, 8:04 PM (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32385069
Default Alt Text
D24568.id70970.diff (475 B)

Event Timeline