ipv6: fix sparse warning: Using plain integer as NULL pointer