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:
syrinx 2009-12-05 13:45:21 +00:00
parent a448ba25c9
commit c9b899f968

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;