mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove useless check of ia6 against NULL, right after dereferencing it.
This commit is contained in:
parent
0218539652
commit
ca695e0807
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue