From 43796bf131c4d7d3a44185c10e5d75860869af0d Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 8 Jun 2019 21:48:29 +0000 Subject: Do not try to parse command when unsetting, GitHub issue 1788. --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options.c') diff --git a/options.c b/options.c index 7e12544d..619c27ed 100644 --- a/options.c +++ b/options.c @@ -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: -- cgit v1.2.3