ip: fix overflow in ip6_ext_header_walk