Date: Sat, 3 Oct 2015 05:42:26 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288530 - head/sys/netpfil/ipfw Message-ID: <201510030542.t935gQhE019286@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510030542.t935gQhE019286>