summaryrefslogtreecommitdiff
path: root/src/odhcp6c.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-01-30 21:05:37 +0100
committerSteven Barth <steven@midlink.org>2013-01-30 21:05:37 +0100
commit61effec4509b2c0d6e3c0ee8b7ae0d318b08868e (patch)
tree23033bfed16d5f570169f50d8fe96fc322d54633 /src/odhcp6c.c
parent806ebbc1f4dd848c2d19b56f5be84db16fada612 (diff)
downloadodhcp6c-61effec4509b2c0d6e3c0ee8b7ae0d318b08868e.tar.gz
Fix safe entry manipulation
Diffstat (limited to 'src/odhcp6c.c')
-rw-r--r--src/odhcp6c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odhcp6c.c b/src/odhcp6c.c
index 6266aa4..e4da1ab 100644
--- a/src/odhcp6c.c
+++ b/src/odhcp6c.c
@@ -393,7 +393,7 @@ void odhcp6c_update_entry_safe(enum odhcp6c_state state, const struct odhcp6c_en
struct odhcp6c_entry *start = odhcp6c_get_state(state, &len);
if (x && x->valid > new->valid && new->valid < safe)
- return;
+ new->valid = safe;
if (new->valid > 0) {
if (x)