MFC 285325

Correct issue presented in r285051 by properly initializing variable.

Differential Revision:	 https://reviews.freebsd.org/D3036
This commit is contained in:
eri 2015-07-29 17:50:14 +00:00
parent b2cc8257fa
commit 3082d2efe1

View File

@ -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.