From owner-freebsd-bugs Sun Nov 25 8:10: 4 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4784837B427 for ; Sun, 25 Nov 2001 08:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAPGA2j64520; Sun, 25 Nov 2001 08:10:02 -0800 (PST) (envelope-from gnats) Date: Sun, 25 Nov 2001 08:10:02 -0800 (PST) Message-Id: <200111251610.fAPGA2j64520@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brian Candler Subject: Re: bin/32270: ipfw misreads 'skipto' rule number with leading zero Reply-To: Brian Candler Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/32270; it has been noted by GNATS. From: Brian Candler To: Peter Pentchev Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/32270: ipfw misreads 'skipto' rule number with leading zero Date: Sun, 25 Nov 2001 16:07:04 +0000 I can't upgrade to 4.4-STABLE at the moment, but I do see the following in ipfw.c from /src/ssbin.?? on the CD-ROM, line 1654: } else if (!strncmp(*av, "skipto", strlen(*av))) { rule.fw_flg |= IP_FW_F_SKIPTO; av++; ac--; if (!ac) show_usage("missing skipto rule number"); rule.fw_skipto_rule = strtoul(*av, NULL, 0); av++; ac--; I think the third parameter to strtoul should be 10, not 0. Regards, Brian. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message