mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
ff09f97fb4
commit
1753369083
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200122
@ -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