]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp6: only send dhcp6 to an interface if it has a send object.
authorRoy Marples <roy@marples.name>
Fri, 7 Sep 2018 13:01:36 +0000 (14:01 +0100)
committerRoy Marples <roy@marples.name>
Fri, 7 Sep 2018 13:01:36 +0000 (14:01 +0100)
src/dhcp6.c

index b95dcd418c97ca6cabaf352cc47deca561f0ef1f..de51ee5657541c556e3c6fa489520068ddd0bb80 100644 (file)
@@ -3542,7 +3542,8 @@ dhcp6_recv(struct dhcpcd_ctx *ctx, struct ipv6_addr *ia)
                    " sending to all interfaces",
                    ifp->name, ctx->sfrom);
                TAILQ_FOREACH(ifp, ctx->ifaces, next) {
-                       if (D6_CSTATE(ifp) != NULL)
+                       state = D6_CSTATE(ifp);
+                       if (state != NULL && state->send != NULL)
                                dhcp6_recvif(ifp, r, len);
                }
                return;