summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-16 03:12:44 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-16 03:12:44 +0000
commitc501489004a473932094587f4ddfd72dd192e55c (patch)
tree9c5e71146496827dcd1b1c6a4660c157680039f9 /sys/netinet6/nd6.c
parente73e7617200018fa199d34702b760f0ac34c11da (diff)
downloadFreeBSD-src-c501489004a473932094587f4ddfd72dd192e55c.zip
FreeBSD-src-c501489004a473932094587f4ddfd72dd192e55c.tar.gz
convert more pointer validation checks to checking against NULL
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index fae9816..71d50d0 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1642,7 +1642,7 @@ nd6_cache_lladdr(struct ifnet *ifp, struct in6_addr *from, char *lladdr,
return (ln);
done:
- if (ln) {
+ if (ln != NULL) {
if (flags & ND6_EXCLUSIVE)
LLE_WUNLOCK(ln);
else
@@ -1716,7 +1716,7 @@ nd6_output_lle(struct ifnet *ifp, struct ifnet *origifp, struct mbuf *m0,
int flags = 0;
#ifdef INVARIANTS
- if (lle) {
+ if (lle != NULL) {
LLE_WLOCK_ASSERT(lle);
OpenPOWER on IntegriCloud