mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Fix panic in CTL caused by trying to free invalid pointers passed
by the userland process via the IOCTL interface. Reviewed by: ken@
This commit is contained in:
parent
7403d1b9b2
commit
43f3d8e372
1 changed files with 5 additions and 0 deletions
|
|
@ -2074,6 +2074,11 @@ ctl_copyin_args(int num_be_args, struct ctl_be_arg *be_args,
|
|||
if (args == NULL)
|
||||
goto bailout;
|
||||
|
||||
for (i = 0; i < num_be_args; i++) {
|
||||
args[i].kname = NULL;
|
||||
args[i].kvalue = NULL;
|
||||
}
|
||||
|
||||
for (i = 0; i < num_be_args; i++) {
|
||||
uint8_t *tmpptr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue