ip6: fix possible use of uninitialized memory