Fix an obvious logic error in the IPv4 multicast leave processing,
where the filter mode vector was not updated correctly after the leave. PR: 138691 Submitted by: Stef Walter MFC after: 5 days
This commit is contained in:
parent
3031a90b58
commit
fe0bf7a268
@ -2278,9 +2278,11 @@ out_imf_rollback:
|
||||
imf_reap(imf);
|
||||
|
||||
if (is_final) {
|
||||
/* Remove the gap in the membership array. */
|
||||
for (++idx; idx < imo->imo_num_memberships; ++idx)
|
||||
/* Remove the gap in the membership and filter array. */
|
||||
for (++idx; idx < imo->imo_num_memberships; ++idx) {
|
||||
imo->imo_membership[idx-1] = imo->imo_membership[idx];
|
||||
imo->imo_mfilters[idx-1] = imo->imo_mfilters[idx];
|
||||
}
|
||||
imo->imo_num_memberships--;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user