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)
commitd277ddb78abd034eb0e1c088ac969cdeef10d9e2
tree60c9bb30db4d27cdb0a29599e653bb4661d3dbc3
parent6326ab374ede4fff1e8019a50d4b9854b8db7625
Fix iteration after expiring a list entry

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>
src/odhcp6c.c