diff options
author | ae <ae@FreeBSD.org> | 2015-03-02 07:51:14 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-03-02 07:51:14 +0000 |
commit | 4cbe57cef8ead26e8e3ec1215a273091d9f3e912 (patch) | |
tree | aeab62d4b77c66a945eac0ab91d1ef8fbf19d1a9 /lib/libthr/thread/thr_fork.c | |
parent | 06e10c673ba641224f359f28656fef8292ed0b10 (diff) | |
download | FreeBSD-src-4cbe57cef8ead26e8e3ec1215a273091d9f3e912.zip FreeBSD-src-4cbe57cef8ead26e8e3ec1215a273091d9f3e912.tar.gz |
MFC r279206:
In some cases soreceive_dgram() can return no data, but has control
message. This can happen when application is sending packets too big
for the path MTU and recvmsg() will return zero (indicating no data)
but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
Remove KASSERT() which does NULL pointer dereference in such case.
Also call m_freem() only when m isn't NULL.
MFC r279209:
soreceive_generic() still has similar KASSERT(), therefore instead of
remove KASSERT(), change it to check mbuf isn't NULL.
PR: 197882
Sponsored by: Yandex LLC
Diffstat (limited to 'lib/libthr/thread/thr_fork.c')
0 files changed, 0 insertions, 0 deletions