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:
parent
a448ba25c9
commit
c9b899f968
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user