Date: Sat, 12 Dec 2009 20:26:11 +0000 (UTC) From: Shteryana Shopova <syrinx@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r200446 - stable/8/usr.sbin/bsnmpd/modules/snmp_pf Message-ID: <200912122026.nBCKQBcm062615@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: syrinx Date: Sat Dec 12 20:26:11 2009 New Revision: 200446 URL: http://svn.freebsd.org/changeset/base/200446 Log: MFC r200122 Make sure enough memory is allocated for a struct pft_entry when refreshing the list of pf tables. Modified: stable/8/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Directory Properties: stable/8/usr.sbin/bsnmpd/ (props changed) Modified: stable/8/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c ============================================================================== --- stable/8/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Sat Dec 12 20:24:12 2009 (r200445) +++ stable/8/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c Sat Dec 12 20:26:11 2009 (r200446) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912122026.nBCKQBcm062615>