Remove useless check of ia6 against NULL, right after dereferencing it.
This commit is contained in:
parent
0218539652
commit
ca695e0807
@ -842,7 +842,7 @@ ip6_input(struct mbuf *m)
|
||||
/* 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 @@ ip6_input(struct mbuf *m)
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user