Author: melifaro
Date: Sat Oct  3 05:42:25 2015
New Revision: 288530
URL: https://svnweb.freebsd.org/changeset/base/288530

Log:
  Bump number of prefixes in O_IP_<SRC|DST> from 15 to 31 (max possible).
  
  PR:           203459
  Submitted by: groos at xiplink.com
  MFC after:    2 weeks

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

Modified: head/sys/netpfil/ipfw/ip_fw_sockopt.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_sockopt.c       Sat Oct  3 03:57:58 2015        
(r288529)
+++ head/sys/netpfil/ipfw/ip_fw_sockopt.c       Sat Oct  3 05:42:25 2015        
(r288530)
@@ -1531,7 +1531,7 @@ check_ipfw_rule_body(ipfw_insn *cmd, int
                case O_IP_SRC_MASK:
                case O_IP_DST_MASK:
                        /* only odd command lengths */
-                       if ( !(cmdlen & 1) || cmdlen > 31)
+                       if ((cmdlen & 1) == 0)
                                goto bad_size;
                        break;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to