svn commit: r282856 - head/sys/netpfil/ipfw

Luigi Rizzo luigi at FreeBSD.org
Wed May 13 11:53:25 UTC 2015


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,


More information about the svn-src-all mailing list