Page MenuHomeFreeBSD

D24568.diff
No OneTemporary

D24568.diff

Index: head/sys/kern/uipc_socket.c
===================================================================
--- head/sys/kern/uipc_socket.c
+++ head/sys/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
Fri, Feb 14, 7:28 AM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16639269
Default Alt Text
D24568.diff (502 B)

Event Timeline