]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Fix iteration after expiring a list entry
authorBen Hutchings <ben@decadent.org.uk>
Fri, 22 Jan 2016 19:34:41 +0000 (19:34 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 15:38:28 +0000 (15:38 +0000)
After removing an entry, the next entry will be at the same offset as
the entry we just removed.  Also the total length will have changed.

Update the length when we remove an entry, and advance the offset only
when we don't.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

No differences found