diff options
author | eri <eri@FreeBSD.org> | 2015-07-29 17:50:14 +0000 |
---|---|---|
committer | eri <eri@FreeBSD.org> | 2015-07-29 17:50:14 +0000 |
commit | 3082d2efe1d8105ff8da93905fe42e99b24f6527 (patch) | |
tree | 034926b7a486565c5cc12aa689998eb0bf063404 /sys/netinet/ip_input.c | |
parent | b2cc8257fafcac243898243bbe14dd18835fb5c0 (diff) | |
download | FreeBSD-src-3082d2efe1d8105ff8da93905fe42e99b24f6527.zip FreeBSD-src-3082d2efe1d8105ff8da93905fe42e99b24f6527.tar.gz |
MFC 285325
Correct issue presented in r285051 by properly initializing variable.
Differential Revision: https://reviews.freebsd.org/D3036
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 372e48d..2dc080f 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1382,7 +1382,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. |