Fix a kernel panic based on receiving an ICMPv6 Packet too Big message.

PR:		99779
Submitted by:	Jinmei Tatuya
Reviewed by:	clement, rwatson
MFC after:	1 week
This commit is contained in:
George V. Neville-Neil 2006-08-18 14:05:13 +00:00
parent 6909dc43c5
commit daa5817e92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161440

View file

@ -1575,10 +1575,10 @@ soreceive_generic(so, psa, uio, mp0, controlp, flagsp)
} }
cm = cmn; cm = cmn;
} }
if (so->so_rcv.sb_mb) if (m != NULL)
nextrecord = so->so_rcv.sb_mb->m_nextpkt; nextrecord = so->so_rcv.sb_mb->m_nextpkt;
else else
nextrecord = NULL; nextrecord = so->so_rcv.sb_mb;
orig_resid = 0; orig_resid = 0;
} }
if (m != NULL) { if (m != NULL) {