]> git.decadent.org.uk Git - odhcp6c.git/blobdiff - src/odhcp6c.c
Fix safe entry manipulation
[odhcp6c.git] / src / odhcp6c.c
index 6266aa484719feb5be7c4660b95df54e5cfb2a48..e4da1ab2767b36ef067e4cb314f413ff40f779c8 100644 (file)
@@ -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)