Correct issue presented in r285051,
apparently neither clang nor gcc complain about this. But clang intis the var to NULL correctly while gcc on at least mips does not. Correct the undefined behavior by initializing the variable properly. PR: 201371 Differential Revision: https://reviews.freebsd.org/D3036 Reviewed by: gnn Approved by: gnn(mentor)
This commit is contained in:
parent
7b7254e71f
commit
56844a6203
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285325
@ -941,7 +941,8 @@ ip_forward(struct mbuf *m, int srcrt)
|
||||
if (ro.ro_rt != NULL) {
|
||||
ia = ifatoia(ro.ro_rt->rt_ifa);
|
||||
ifa_ref(&ia->ia_ifa);
|
||||
}
|
||||
} else
|
||||
ia = NULL;
|
||||
#ifndef IPSEC
|
||||
/*
|
||||
* 'ia' may be NULL if there is no route for this destination.
|
||||
|
Loading…
Reference in New Issue
Block a user