mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
libipf: fix parser error message.
MFC after: 1 week
Reviewed by: cy
Differential Revision: https://reviews.freebsd.org/D41652
(cherry picked from commit 4cd9d804ae
)
This commit is contained in:
parent
4cc4afd666
commit
f01e4edfc8
@ -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 New Issue
Block a user