From owner-svn-src-all@FreeBSD.ORG Thu Apr 21 08:18:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74E631065677; Thu, 21 Apr 2011 08:18:55 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6487A8FC16; Thu, 21 Apr 2011 08:18:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3L8ItG2087005; Thu, 21 Apr 2011 08:18:55 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3L8ItDM087003; Thu, 21 Apr 2011 08:18:55 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201104210818.p3L8ItDM087003@svn.freebsd.org> From: Gleb Smirnoff Date: Thu, 21 Apr 2011 08:18:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220914 - head/sys/netinet/ipfw X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2011 08:18:55 -0000 Author: glebius Date: Thu Apr 21 08:18:55 2011 New Revision: 220914 URL: http://svn.freebsd.org/changeset/base/220914 Log: Use size_t for sopt_valsize. Submitted by: Brandon Gooch Modified: head/sys/netinet/ipfw/ip_fw_nat.c Modified: head/sys/netinet/ipfw/ip_fw_nat.c ============================================================================== --- head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:15:29 2011 (r220913) +++ head/sys/netinet/ipfw/ip_fw_nat.c Thu Apr 21 08:18:55 2011 (r220914) @@ -346,7 +346,8 @@ ipfw_nat_cfg(struct sockopt *sopt) struct cfg_nat *cfg, *ptr; char *buf; struct ip_fw_chain *chain = &V_layer3_chain; - int gencnt, len, error = 0; + size_t len; + int gencnt, error = 0; len = sopt->sopt_valsize; buf = malloc(len, M_TEMP, M_WAITOK | M_ZERO);