diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index a94d5c22c509..54d5856ce094 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -842,7 +842,7 @@ passin: /* Count the packet in the ip address stats */ ia6->ia_ifa.if_ipackets++; ia6->ia_ifa.if_ibytes += m->m_pkthdr.len; - if (ia6 != NULL && free_ia6 != 0) + if (free_ia6) ifa_free(&ia6->ia_ifa); goto hbhcheck; } else { @@ -854,7 +854,7 @@ passin: ip6_sprintf(ip6bufs, &ip6->ip6_src), ip6_sprintf(ip6bufd, &ip6->ip6_dst))); - if (ia6 != NULL && free_ia6 != 0) + if (free_ia6) ifa_free(&ia6->ia_ifa); goto bad; }