svn commit: r261029 - head/sys/netpfil/pf

Gleb Smirnoff glebius at FreeBSD.org
Wed Jan 22 15:58:44 UTC 2014


Author: glebius
Date: Wed Jan 22 15:58:43 2014
New Revision: 261029
URL: http://svnweb.freebsd.org/changeset/base/261029

Log:
  Remove NULL pointer dereference.
  
  CID:	1009118

Modified:
  head/sys/netpfil/pf/pf.c

Modified: head/sys/netpfil/pf/pf.c
==============================================================================
--- head/sys/netpfil/pf/pf.c	Wed Jan 22 15:44:38 2014	(r261028)
+++ head/sys/netpfil/pf/pf.c	Wed Jan 22 15:58:43 2014	(r261029)
@@ -5493,7 +5493,6 @@ pf_route(struct mbuf **m, struct pf_rule
 			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;


More information about the svn-src-head mailing list