summaryrefslogtreecommitdiff
path: root/kernel-8.0/freebsd-mcast-filter-array-in-sync.patch
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-09-10 16:23:56 +0000
committerStef Walter <stef@memberwebs.com>2009-09-10 16:23:56 +0000
commitdac8b80c8c5f3da019ed921bdf2e95fe368d7169 (patch)
treea4a0eaf8fc5bc0cd617e9862a359304934e6d374 /kernel-8.0/freebsd-mcast-filter-array-in-sync.patch
parentb3ed25869949d6fc007ac66969738e11e117067f (diff)
Separate update-kernel patches and add new one
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--;
+ }