projects
/
project
/
odhcpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make hostid more convenient
[project/odhcpd.git]
/
src
/
dhcpv4.c
diff --git
a/src/dhcpv4.c
b/src/dhcpv4.c
index
b5eeb6e
..
62ddab8
100644
(file)
--- a/
src/dhcpv4.c
+++ b/
src/dhcpv4.c
@@
-517,10
+517,11
@@
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 (a)
+ update_state = true;
+
if (assigned && a)
lease = a;
} else if (msg == DHCPV4_MSG_RELEASE) {