diff options
| author | Roy Marples <roy@marples.name> | 2018-09-07 14:01:36 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2018-09-07 14:01:36 +0100 |
| commit | e496358e0c17ebebe7910c5a5927781fb0c24b94 (patch) | |
| tree | 6e874a79a10f0cef94df9e27b31115a85d61de8a | |
| parent | bb3395d54ec46b9be2cbfa3f0f0128f06c89f5a8 (diff) | |
| download | dhcpcd-e496358e0c17ebebe7910c5a5927781fb0c24b94.tar.xz | |
dhcp6: only send dhcp6 to an interface if it has a send object.
| -rw-r--r-- | src/dhcp6.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
