projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69ca34d
)
add more consistency to host file writing
author
Steven Barth
<steven@midlink.org>
Mon, 16 Jun 2014 16:25:56 +0000
(18:25 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 16 Jun 2014 16:25:56 +0000
(18:25 +0200)
src/dhcpv4.c
patch
|
blob
|
history
diff --git
a/src/dhcpv4.c
b/src/dhcpv4.c
index b5eeb6e971df48f65971a9767a5fc30609358482..62ddab866ea5cc608f1596e7a99130db0f77818a 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) {