From owner-svn-src-head@FreeBSD.ORG Sat Dec 5 13:45:22 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DA0F106568B; Sat, 5 Dec 2009 13:45:22 +0000 (UTC) (envelope-from syrinx@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0CC5B8FC12; Sat, 5 Dec 2009 13:45:22 +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 nB5DjLWG089208; Sat, 5 Dec 2009 13:45:21 GMT (envelope-from syrinx@svn.freebsd.org) Received: (from syrinx@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB5DjLVW089206; Sat, 5 Dec 2009 13:45:21 GMT (envelope-from syrinx@svn.freebsd.org) Message-Id: <200912051345.nB5DjLVW089206@svn.freebsd.org> From: Shteryana Shopova Date: Sat, 5 Dec 2009 13:45:21 +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: r200122 - head/usr.sbin/bsnmpd/modules/snmp_pf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2009 13:45:22 -0000 Author: syrinx Date: Sat Dec 5 13:45:21 2009 New Revision: 200122 URL: http://svn.freebsd.org/changeset/base/200122 Log: Make sure enough memory is allocated for a struct pft_entry when refreshing the list of pf tables. OKed by: philip MFC after: 1 week Modified: head/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Modified: head/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c ============================================================================== --- head/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Sat Dec 5 13:40:51 2009 (r200121) +++ head/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Sat Dec 5 13:45:21 2009 (r200122) @@ -1104,7 +1104,7 @@ pft_refresh(void) } for (i = 0; i < numtbls; i++) { - e = malloc(sizeof(struct pfr_tstats)); + e = malloc(sizeof(struct pft_entry)); if (e == NULL) goto err1; e->index = i + 1;