mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Nullify pattern after failed regcomp
This commit is contained in:
parent
8bb722a390
commit
9c5df0ae70
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ optpat()
|
|||
patlock = 0;
|
||||
if (n = regcomp(exp, exps, 0)) {
|
||||
regerror(n, exp, errmsg, sizeof errmsg);
|
||||
return NULL;
|
||||
free(exp);
|
||||
return exp = NULL;
|
||||
}
|
||||
return exp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue