Check for NULL before de-referencing a pointer, not after.
authorkrw <krw@openbsd.org>
Sat, 29 Jul 2023 15:59:27 +0000 (15:59 +0000)
committerkrw <krw@openbsd.org>
Sat, 29 Jul 2023 15:59:27 +0000 (15:59 +0000)
commit5cf63f2f3709cbaea512410e5f5de23110dd7980
treea7e6d56eb45b06843b75f3ec1dbae3447a790fe1
parentaec2f735713211c02be6b20a4dc88ab05edf1770
Check for NULL before de-referencing a pointer, not after.

Coverity CID #1566406

ok phessler@
sys/netinet6/nd6_nbr.c