summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv4.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-06-16 11:05:03 +0200
committerSteven Barth <steven@midlink.org>2014-06-16 11:05:03 +0200
commit69ca34df0145dd204dceeacc7caf978e4055d679 (patch)
tree1b8c809847209cb3e54f29ea9639e89a8db4f586 /src/dhcpv4.c
parent1733ea4fa2d0b5286d9cfa20c1e18ee93562ec6d (diff)
dhcpv4: update hostfile more often
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r--src/dhcpv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c
index 53e4682..b5eeb6e 100644
--- a/src/dhcpv4.c
+++ b/src/dhcpv4.c
@@ -517,6 +517,8 @@ static struct dhcpv4_assignment* dhcpv4_lease(struct interface *iface,
} else if (!assigned && a) { // Cleanup failed assignment
free(a);
a = NULL;
+ } else {
+ update_state = true;
}
if (assigned && a)