]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r272797:
authorbryanv <bryanv@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 8 Nov 2014 02:40:00 +0000 (02:40 +0000)
committerbryanv <bryanv@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 8 Nov 2014 02:40:00 +0000 (02:40 +0000)
commitb9f43216147d0f4ecfbbd3cb0de2ea998be7e07f
tree21b047c473224b4e7262d4a4cca5a7d52ab7362d
parent206e4723d10f44f96e70fe92fed31f3776d12b49
MFC r272797:

Check for mbuf copy failure when there are multiple multicast sockets

This partitular case is the only path where the mbuf could be NULL.
udp_append() checked for a NULL mbuf only after invoking the tunneling
callback. Our only in tree tunneling callback - SCTP - assumed a non
NULL mbuf, and it is a bit odd to make the callbacks responsible for
checking this condition.

This also reduces the differences between the IPv4 and IPv6 code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@274264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/udp_usrreq.c