From: Roy Marples Date: Mon, 15 May 2017 08:58:36 +0000 (+0100) Subject: It's possible to receive a DHCPv6 lease without an address. X-Git-Tag: v7.0.0-rc2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a938aef853bb082b85dc0149e004587d7008ad6;p=thirdparty%2Fdhcpcd.git It's possible to receive a DHCPv6 lease without an address. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index f7505765..71f1dace 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -3103,7 +3103,12 @@ dhcp6_handledata(void *arg) } if (ap == NULL) ap = TAILQ_FIRST(&state->addrs); - loginfox("%s: ADV %s from %s", ifp->name, ap->saddr, ctx->sfrom); + if (ap == NULL) + loginfox("%s: ADV (no address) from %s", + ifp->name, ctx->sfrom); + else + loginfox("%s: ADV %s from %s", + ifp->name, ap->saddr, ctx->sfrom); if (ifp->ctx->options & DHCPCD_TEST) break; dhcp6_startrequest(ifp);