odhcp6c: fix possible stack corruption when parsing proc if_inet6