summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/conffile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conffile.c b/src/conffile.c
index 5b7f834..cc5552c 100644
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -198,6 +198,12 @@ int config_parse_file(const char *section, struct config_keyset *kset)
}
wordend = get_word(wordend, " =\t\n\r", (char *) &wordbuf);
+ if (wordend == NULL) {
+ ulogd_log(ULOGD_NOTICE,
+ "ignoring malformed config directive \"%s\" on line %d\n",
+ ce->key, linenum);
+ break;
+ }
args = (char *)&wordbuf;
if (ce->hit && !(ce->options & CONFIG_OPT_MULTI))