summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-16 02:30:42 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-16 02:30:42 +0000
commit54c2e2ce52698c56848b58421ca70373e949d04f (patch)
treee7251bce9144615b8d47147da526d732709bfed4 /sys/netinet6/in6.c
parentaca7e14bdbee8cab5b060b86f3b34d27de944f23 (diff)
downloadFreeBSD-src-54c2e2ce52698c56848b58421ca70373e949d04f.zip
FreeBSD-src-54c2e2ce52698c56848b58421ca70373e949d04f.tar.gz
check return from lla_lookup against NULL not zero
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 6138533..6ba852c 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1593,7 +1593,7 @@ in6_ifinit(struct ifnet *ifp, struct in6_ifaddr *ia,
ln = lla_lookup(LLTABLE6(ifp), (LLE_CREATE | LLE_IFADDR | LLE_EXCLUSIVE),
(struct sockaddr *)&ia->ia_addr);
IF_AFDATA_UNLOCK(ifp);
- if (ln) {
+ if (ln != NULL) {
ln->la_expire = 0; /* for IPv6 this means permanent */
ln->ln_state = ND6_LLINFO_REACHABLE;
LLE_WUNLOCK(ln);
OpenPOWER on IntegriCloud