Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2015 11:53:25 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282856 - head/sys/netpfil/ipfw
Message-ID:  <201505131153.t4DBrPfM036222@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Wed May 13 11:53:25 2015
New Revision: 282856
URL: https://svnweb.freebsd.org/changeset/base/282856

Log:
  bugfix (only affecting the "lookup" option in the userspace version of ipfw):
  
  the conditional block should not include the 'else' otherwise
  the code does a 'break;' without completing the check

Modified:
  head/sys/netpfil/ipfw/ip_fw2.c

Modified: head/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw2.c	Wed May 13 11:49:38 2015	(r282855)
+++ head/sys/netpfil/ipfw/ip_fw2.c	Wed May 13 11:53:25 2015	(r282856)
@@ -1532,8 +1532,9 @@ do {								\
 					    else if (v == 5 /* O_JAIL */)
 						key = ucred_cache.xid;
 #endif /* !__FreeBSD__ */
-					} else
+					}
 #endif /* !USERSPACE */
+					else
 					    break;
 				    }
 				    match = ipfw_lookup_table(chain,



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