From: Ben Hutchings Date: Fri, 22 Jan 2016 19:34:41 +0000 (+0000) Subject: Fix iteration after expiring a list entry X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d277ddb78abd034eb0e1c088ac969cdeef10d9e2;hp=d277ddb78abd034eb0e1c088ac969cdeef10d9e2;p=project%2Fodhcp6c.git 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 ---