mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libipf: fix parser error message.
MFC after: 1 week Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D41652 (cherry picked from commit 4cd9d804ae8b955d47dfa0bba06e7c254d760cb1) Approved by: re (gjb)
This commit is contained in:
parent
a781134d49
commit
b27e66f266
1 changed files with 1 additions and 5 deletions
|
|
@ -93,11 +93,7 @@ parseipfexpr(char *line, char **errorptr)
|
|||
break;
|
||||
}
|
||||
if (e->ipoe_word == NULL) {
|
||||
error = malloc(32);
|
||||
if (error != NULL) {
|
||||
snprintf(error, sizeof(error), "keyword (%.10s) not found",
|
||||
ops);
|
||||
}
|
||||
asprintf(&error, "keyword (%.10s) not found", ops);
|
||||
goto parseerror;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue