]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use ctx options rather than ifp for lease dumping.
authorRoy Marples <roy@marples.name>
Wed, 24 Sep 2014 10:15:36 +0000 (10:15 +0000)
committerRoy Marples <roy@marples.name>
Wed, 24 Sep 2014 10:15:36 +0000 (10:15 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 7461ee9a4d358e5b2a864287884c042c3d8841f7..e1d9c7e920e48e9a48d98942d01d0e3c31b6e64b 100644 (file)
--- 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);