summaryrefslogtreecommitdiff
path: root/kernel-7.2/freebsd-mcast-eaddrnotavail.patch
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-09-11 16:28:48 +0000
committerStef Walter <stef@memberwebs.com>2009-09-11 16:28:48 +0000
commit981d4b941eb333d8088d64aeeb833b6d7d072f33 (patch)
tree854313852d168b5f73d74fcb215b121eabbd0ffe /kernel-7.2/freebsd-mcast-eaddrnotavail.patch
parent7d0270d7783647e33f69e9889c33db255ca6b081 (diff)
Copy patches for kernel-7.2
Diffstat (limited to 'kernel-7.2/freebsd-mcast-eaddrnotavail.patch')
-rw-r--r--kernel-7.2/freebsd-mcast-eaddrnotavail.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel-7.2/freebsd-mcast-eaddrnotavail.patch b/kernel-7.2/freebsd-mcast-eaddrnotavail.patch
new file mode 100644
index 0000000..c821233
--- /dev/null
+++ b/kernel-7.2/freebsd-mcast-eaddrnotavail.patch
@@ -0,0 +1,13 @@
+--- sys/netinet/in_mcast.c.orig 2008-11-25 02:59:29.000000000 +0000
++++ sys/netinet/in_mcast.c 2009-09-10 23:37:09.000000000 +0000
+@@ -1265,6 +1265,9 @@
+ }
+
+- if (gsa->sin.sin_addr.s_addr != INADDR_ANY)
++ if (gsa->sin.sin_addr.s_addr != INADDR_ANY) {
+ INADDR_TO_IFP(mreqs.imr_interface, ifp);
++ if (ifp == NULL)
++ return (EADDRNOTAVAIL);
++ }
+
+ #ifdef DIAGNOSTIC