diff options
author | melifaro <melifaro@FreeBSD.org> | 2015-10-03 05:42:25 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2015-10-03 05:42:25 +0000 |
commit | d7ce93106b73ceb3f26f5c662db7b90bd440d333 (patch) | |
tree | 8a057a339dd4be38f332bf38cf53e960e5cb5e49 /sys/netpfil | |
parent | 6959f4d949c3fcc54f518f7b5adffc2f1210cc57 (diff) | |
download | FreeBSD-src-d7ce93106b73ceb3f26f5c662db7b90bd440d333.zip FreeBSD-src-d7ce93106b73ceb3f26f5c662db7b90bd440d333.tar.gz |
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
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_sockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_sockopt.c b/sys/netpfil/ipfw/ip_fw_sockopt.c index 107c4b8..7ed4c1d 100644 --- a/sys/netpfil/ipfw/ip_fw_sockopt.c +++ b/sys/netpfil/ipfw/ip_fw_sockopt.c @@ -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; |