[PATCH 1/6] dhcpv6: Use for loop instead of goto to avoid false positive cppcheck warning