]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Check the correct interface the RAP came from before overwriting it.
authorRoy Marples <roy@marples.name>
Fri, 18 Jan 2013 19:59:01 +0000 (19:59 +0000)
committerRoy Marples <roy@marples.name>
Fri, 18 Jan 2013 19:59:01 +0000 (19:59 +0000)
ipv6rs.c

index 58813472d43d6dd3c31f19502b92470ca3273879..3b18750ac82584ef85049e09bbfe0a75f45f24fd 100644 (file)
--- a/ipv6rs.c
+++ b/ipv6rs.c
@@ -469,7 +469,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;
        }