summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2005-07-28 10:10:01 +0000
committergnn <gnn@FreeBSD.org>2005-07-28 10:10:01 +0000
commit4504989c4b6b6c572523e0acd769285c2e5304ff (patch)
tree0adaaff990b669d4b53eabe71eeffcb624c9e98c /sys
parentf298f4eae6e891049144a97aaa4ec52697250368 (diff)
downloadFreeBSD-src-4504989c4b6b6c572523e0acd769285c2e5304ff.zip
FreeBSD-src-4504989c4b6b6c572523e0acd769285c2e5304ff.tar.gz
Fix for PR 83885.
Make sure that there actually is a next packet before setting nextrecord to that field. PR: 83885 Submitted by: hirose@comm.yamaha.co.jp Obtained from: Patch suggested in the PR MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_socket.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index c776c0c..5ab5719 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1162,7 +1162,10 @@ dontblock:
}
cm = cmn;
}
- nextrecord = so->so_rcv.sb_mb->m_nextpkt;
+ if (so->so_rcv.sb_mb)
+ nextrecord = so->so_rcv.sb_mb->m_nextpkt;
+ else
+ nextrecord = NULL;
orig_resid = 0;
}
if (m != NULL) {
OpenPOWER on IntegriCloud