]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r279206:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Mar 2015 07:51:14 +0000 (07:51 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 2 Mar 2015 07:51:14 +0000 (07:51 +0000)
commit13f2ebcdcd07f3e4c89da872e841289b6162ec10
treeaeab62d4b77c66a945eac0ab91d1ef8fbf19d1a9
parent295ed7b9e3d100bff77c296e842e9b7823b8ffbd
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@279516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/uipc_socket.c