diff options
author | Steven Barth <steven@midlink.org> | 2013-01-30 21:05:37 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-01-30 21:05:37 +0100 |
commit | 61effec4509b2c0d6e3c0ee8b7ae0d318b08868e (patch) | |
tree | 23033bfed16d5f570169f50d8fe96fc322d54633 /src/odhcp6c.c | |
parent | 806ebbc1f4dd848c2d19b56f5be84db16fada612 (diff) | |
download | odhcp6c-61effec4509b2c0d6e3c0ee8b7ae0d318b08868e.tar.gz |
Fix safe entry manipulation
Diffstat (limited to 'src/odhcp6c.c')
-rw-r--r-- | src/odhcp6c.c | 2 |
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) |