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
This commit is contained in:
Shteryana Shopova 2009-12-05 13:45:21 +00:00
parent ff09f97fb4
commit 1753369083
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200122

View File

@ -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;