From: Roy Marples Date: Fri, 7 Sep 2018 13:01:36 +0000 (+0100) Subject: dhcp6: only send dhcp6 to an interface if it has a send object. X-Git-Tag: v7.1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfd89cbc1fd2dc461d413dd2c29d28021571201e;p=thirdparty%2Fdhcpcd.git dhcp6: only send dhcp6 to an interface if it has a send object. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index b95dcd41..de51ee56 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -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;