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
This commit is contained in:
Alexander V. Chernikov 2015-10-03 05:42:25 +00:00
parent 1a6fb597b0
commit c6fb65b1df

View File

@ -1531,7 +1531,7 @@ check_ipfw_rule_body(ipfw_insn *cmd, int cmd_len, struct rule_check_info *ci)
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;