summaryrefslogtreecommitdiff
path: root/kernel-8.0/freebsd-mcast-filter-array-in-sync.patch
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-8.0/freebsd-mcast-filter-array-in-sync.patch')
-rw-r--r--kernel-8.0/freebsd-mcast-filter-array-in-sync.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel-8.0/freebsd-mcast-filter-array-in-sync.patch b/kernel-8.0/freebsd-mcast-filter-array-in-sync.patch
new file mode 100644
index 0000000..49f2408
--- /dev/null
+++ b/kernel-8.0/freebsd-mcast-filter-array-in-sync.patch
@@ -0,0 +1,14 @@
+--- sys/netinet/in_mcast.c.orig 2009-09-09 19:33:22.000000000 +0000
++++ sys/netinet/in_mcast.c 2009-09-10 05:28:20.000000000 +0000
+@@ -2280,7 +2292,9 @@
+
+ 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--;
+ }