Check for NULL before de-referencing a pointer, not after.
authorkrw <krw@openbsd.org>
Sun, 30 Jul 2023 12:52:03 +0000 (12:52 +0000)
committerkrw <krw@openbsd.org>
Sun, 30 Jul 2023 12:52:03 +0000 (12:52 +0000)
commit51a5627571aefb19abb2572be7cadcd8d4963ece
tree4addc63077bc0315970dd8ca947190ffa3fd450d
parentd0c03c4f4dd4c9ec89d97b5b100a843da4433784
Check for NULL before de-referencing a pointer, not after.

More complete solution after tb@ pointed out what Coverity missed.

ok tb@
sys/netinet6/nd6_nbr.c