summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-12 18:56:11 +0100
committerRoy Marples <roy@marples.name>2020-04-12 18:56:11 +0100
commit9c81bac09510c1d45f756cd1ddbc7e7dfc9219e6 (patch)
treee1606d9752355424bc43adeb2f061d251ea665a1
parent0005ea33226dc06011205e47e7fd1057bae47ef2 (diff)
downloaddhcpcd-9c81bac09510c1d45f756cd1ddbc7e7dfc9219e6.tar.xz
Fix small builds.
-rw-r--r--src/dhcp6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcp6.c b/src/dhcp6.c
index 9517f156..8c976419 100644
--- a/src/dhcp6.c
+++ b/src/dhcp6.c
@@ -2950,11 +2950,13 @@ dhcp6_bind(struct interface *ifp, const char *op, const char *sfrom)
if (!timedout) {
logmessage(loglevel, "%s: %s received from %s",
ifp->name, op, sfrom);
+#ifndef SMALL
/* If we delegated from an unconfirmed lease we MUST drop
* them now. Hopefully we have new delegations. */
if (state->reason != NULL &&
strcmp(state->reason, "TIMEOUT6") == 0)
dhcp6_delete_delegates(ifp);
+#endif
state->reason = NULL;
} else
state->reason = "TIMEOUT6";