Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 12:12:58 GMT
From:      dpl@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r273319 - soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw
Message-ID:  <201408291212.s7TCCw6Z026234@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dpl
Date: Fri Aug 29 12:12:57 2014
New Revision: 273319
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=273319

Log:
  Call crfree() only if not in userspace.

Modified:
  soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw2.c

Modified: soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw2.c	Fri Aug 29 12:11:40 2014	(r273318)
+++ soc2014/dpl/netmap-ipfwjit/sys/netpfil/ipfw/ip_fw2.c	Fri Aug 29 12:12:57 2014	(r273319)
@@ -898,7 +898,7 @@
 		printf("ipfw: ouch!, skip past end of rules, denying packet\n");
 	}
 	IPFW_PF_RUNLOCK(chain);
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && !defined(USERSPACE)
 	if (ucred_cache != NULL)
 		crfree(ucred_cache);
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408291212.s7TCCw6Z026234>