Do not try to parse command when unsetting, GitHub issue 1788.

pull/1798/head
nicm 2019-06-08 21:48:29 +00:00 committed by Nicholas Marriott
parent db5a7c1740
commit e337c1ba7d
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ options_array_set(struct options_entry *o, u_int idx, const char *value,
return (-1);
}
if (OPTIONS_IS_COMMAND(o)) {
if (OPTIONS_IS_COMMAND(o) && value != NULL) {
pr = cmd_parse_from_string(value, NULL);
switch (pr->status) {
case CMD_PARSE_EMPTY: