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

Reply via email to