svn commit: r288530 - head/sys/netpfil/ipfw
Alexander V. Chernikov
melifaro at FreeBSD.org
Sat Oct 3 05:42:26 UTC 2015
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;
More information about the svn-src-all
mailing list