summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorsyrinx <syrinx@FreeBSD.org>2009-12-05 13:45:21 +0000
committersyrinx <syrinx@FreeBSD.org>2009-12-05 13:45:21 +0000
commitc9b899f968b509db8ce06336907ed378df76b59f (patch)
tree143ac2318b691704268597f2101c7f614c3d0a13 /usr.sbin/bsnmpd
parenta448ba25c9a177b54a3ea45390cf40ed5100ea63 (diff)
downloadFreeBSD-src-c9b899f968b509db8ce06336907ed378df76b59f.zip
FreeBSD-src-c9b899f968b509db8ce06336907ed378df76b59f.tar.gz
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
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
index 919e5d4..4e554c0 100644
--- a/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+++ b/usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
@@ -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;
OpenPOWER on IntegriCloud