1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

soreceive_generic() still has similar KASSERT(), therefore instead of

remove KASSERT(), change it to check mbuf isn't NULL.

Suggested by:	kib
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2015-02-23 15:24:43 +00:00
parent f21684bc75
commit e9b70483d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279209

View File

@ -2286,6 +2286,8 @@ soreceive_dgram(struct socket *so, struct sockaddr **psa, struct uio *uio,
cm = cmn;
}
}
KASSERT(m == NULL || m->m_type == MT_DATA,
("soreceive_dgram: !data"));
while (m != NULL && uio->uio_resid > 0) {
len = uio->uio_resid;
if (len > m->m_len)