Remove NULL pointer dereference.

CID:	1009118
This commit is contained in:
Gleb Smirnoff 2014-01-22 15:58:43 +00:00
parent d26bbeb948
commit be3d21a2cf

View File

@ -5493,7 +5493,6 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
PF_STATE_UNLOCK(s);
rt = rtalloc1_fib(sintosa(&dst), 0, 0, M_GETFIB(m0));
if (rt == NULL) {
RTFREE_LOCKED(rt);
KMOD_IPSTAT_INC(ips_noroute);
error = EHOSTUNREACH;
goto bad;