Avoid crash when ipv6 behaves strangely.