X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=e4da1ab2767b36ef067e4cb314f413ff40f779c8;hb=61effec4509b2c0d6e3c0ee8b7ae0d318b08868e;hp=6266aa484719feb5be7c4660b95df54e5cfb2a48;hpb=806ebbc1f4dd848c2d19b56f5be84db16fada612;p=odhcp6c.git 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)