MFC a forgotten fix

Make sure that there actually is a next packet before setting
nextrecord to that field.

PR: 83885
Submitted by: hirose@comm.yamaha.co.jp
This commit is contained in:
gnn 2006-06-17 17:47:05 +00:00
parent 5086a51b85
commit 1b59068b4f

View File

@ -1169,7 +1169,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) {