mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 17:17:19 -04:00
Duplicate the pointer to the string containing the header so it does not get
frobbed when/if the pointer it is actually a part of gets freed.
This commit is contained in:
parent
90bd45f1c5
commit
a89d0c4dbc
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ findvar(char *p)
|
|||
warnx("%s: keyword not found", p);
|
||||
eval = 1;
|
||||
} else if (hp)
|
||||
v->header = hp;
|
||||
v->header = strdup(hp);
|
||||
return (v);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue