fix #2178: endless loop on ipv6 extension headers