svn commit: r228150 - head/sys/contrib/pf/net

Gleb Smirnoff glebius at FreeBSD.org
Wed Nov 30 08:47:17 UTC 2011


Author: glebius
Date: Wed Nov 30 08:47:17 2011
New Revision: 228150
URL: http://svn.freebsd.org/changeset/base/228150

Log:
  Return value should be conditional on return value of pfsync_defer_ptr()
  
  PR:		kern/162947
  Submitted by:	Matthieu Kraus <matthieu.kraus s2008.tu-chemnitz.de>

Modified:
  head/sys/contrib/pf/net/pf.c

Modified: head/sys/contrib/pf/net/pf.c
==============================================================================
--- head/sys/contrib/pf/net/pf.c	Wed Nov 30 05:49:17 2011	(r228149)
+++ head/sys/contrib/pf/net/pf.c	Wed Nov 30 08:47:17 2011	(r228150)
@@ -3770,8 +3770,8 @@ pf_test_rule(struct pf_rule **rm, struct
 		 * replies through it.
 		 */
 #ifdef __FreeBSD__
-		if (pfsync_defer_ptr != NULL)
-			pfsync_defer_ptr(*sm, m);
+		if (pfsync_defer_ptr != NULL &&
+			pfsync_defer_ptr(*sm, m))
 #else
 		if (pfsync_defer(*sm, m))
 #endif


More information about the svn-src-all mailing list