]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Tighten input checking in inp_join_group():
authorbms <bms@FreeBSD.org>
Sat, 12 Sep 2009 19:45:55 +0000 (19:45 +0000)
committerbms <bms@FreeBSD.org>
Sat, 12 Sep 2009 19:45:55 +0000 (19:45 +0000)
commite3b721990b2e28499f5c6394541160ebb6f35ff3
treebf0e22884ff5e7f99d3040bccdd2108104f5dd70
parente70bbf0bf3d2ce850e791953345f5f966f4a5c08
Tighten input checking in inp_join_group():
 * Don't try to use the source address, when its family is unspecified.
 * If we get a join without a source, on an existing inclusive
   mode group, this is an error, as it would change the filter mode.

Fix a problem with the handling of in_mfilter for new memberships:
 * Do not rely on imf being NULL; it is explicitly initialized to a
   non-NULL pointer when constructing a membership.
 * Explicitly initialize *imf to EX mode when the source address
   is unspecified.

This fixes a problem with in_mfilter slot recycling in the join path.

PR: 138690
Submitted by: Stef Walter
MFC after: 5 days
sys/netinet/in_mcast.c