X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fdhcpv4.c;h=62ddab866ea5cc608f1596e7a99130db0f77818a;hp=53e46824b2a430e6ecee6e8d5465792df88cddbc;hb=e7098a5d1dbcabb12bc870ef6aa412c7b3235ab2;hpb=ff3f9bb1a2421c02f53504b177ff35e366ed43ab diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 53e4682..62ddab8 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -519,6 +519,9 @@ static struct dhcpv4_assignment* dhcpv4_lease(struct interface *iface, a = NULL; } + if (a) + update_state = true; + if (assigned && a) lease = a; } else if (msg == DHCPV4_MSG_RELEASE) {