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
This commit is contained in:
gnn 2005-07-28 10:10:01 +00:00
parent f298f4eae6
commit 4504989c4b

View File

@ -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) {