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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to