From 81e8123e6e0c95930eb5961a15907be24e9fa663 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 24 Sep 2014 10:15:36 +0000 Subject: [PATCH] Use ctx options rather than ifp for lease dumping. --- dhcp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcp6.c b/dhcp6.c index 7461ee9a..e1d9c7e9 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -2058,7 +2058,7 @@ dhcp6_readlease(struct interface *ifp) if (fd == -1) goto ex; - if (!(ifp->options->options & DHCPCD_DUMPLEASE) && + if (!(ifp->ctx->options & DHCPCD_DUMPLEASE) && state->expire != ND6_INFINITE_LIFETIME) { gettimeofday(&now, NULL); -- 2.47.3