Remove NULL pointer dereference.

CID:	1009118
This commit is contained in:
glebius 2014-01-22 15:58:43 +00:00
parent 4d8db193db
commit 3f1e8f48cd

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;