]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check the correct interface the RAP came from before overwriting it.
authorRoy Marples <roy@marples.name>
Mon, 28 Jan 2013 09:47:15 +0000 (09:47 +0000)
committerRoy Marples <roy@marples.name>
Mon, 28 Jan 2013 09:47:15 +0000 (09:47 +0000)
Thanks to Taylor R Campbell.

ipv6rs.c

index 56fe251041914ce92ef265f5e60d62bed6c71dad..e2d9a1628a08c507557d3939feed79ca7cbe6b15 100644 (file)
--- a/ipv6rs.c
+++ b/ipv6rs.c
@@ -463,7 +463,8 @@ ipv6rs_handledata(_unused void *arg)
                return;
        }
        TAILQ_FOREACH(rap, &ipv6_routers, next) {
-               if (memcmp(rap->from.s6_addr, from.sin6_addr.s6_addr,
+               if (ifp == rap->iface &&
+                   memcmp(rap->from.s6_addr, from.sin6_addr.s6_addr,
                    sizeof(rap->from.s6_addr)) == 0)
                        break;
        }