Adapt r197130 to IPv6 stack:
Fix an obvious logic error in the IPv4 multicast leave processing, where the filter mode vector was not updated correctly after the leave. MFC after: 1 day
This commit is contained in:
parent
7ab5a5cd1a
commit
57a9feeaad
@ -2272,8 +2272,10 @@ in6p_leave_group(struct inpcb *inp, struct sockopt *sopt)
|
||||
|
||||
if (is_final) {
|
||||
/* Remove the gap in the membership array. */
|
||||
for (++idx; idx < imo->im6o_num_memberships; ++idx)
|
||||
for (++idx; idx < imo->im6o_num_memberships; ++idx) {
|
||||
imo->im6o_membership[idx-1] = imo->im6o_membership[idx];
|
||||
imo->im6o_mfilters[idx-1] = imo->im6o_mfilters[idx];
|
||||
}
|
||||
imo->im6o_num_memberships--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user