[PATCH openEuler-5.10 009/119] net: nexthop: fix null pointer dereference when IPv6 is not enabled