summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-09-05 21:54:10 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-09-07 11:59:56 -0400
commit06a395a93ee22df13cb6fe2a5a06cdac3ed1946c (patch)
tree65094adb5ac1cb590e66cbcd74cb6a71d308e500 /src
parent670b2086f8077d1a151c46548d7ad57ff6e58b87 (diff)
downloadlighttpd-git-06a395a93ee22df13cb6fe2a5a06cdac3ed1946c.tar.gz
[core] issue config error for invalid ':' (fixes #2980)
x-ref: "Embedded vim command line in conf file with no comment (#) hangs server" https://redmine.lighttpd.net/issues/2980
Diffstat (limited to 'src')
-rw-r--r--src/configfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/configfile.c b/src/configfile.c
index b870b593..a7ac53bc 100644
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -1130,6 +1130,13 @@ static int config_tokenizer(server *srv, tokenizer_t *t, int *token_id, buffer *
t->offset += 2;
tid = TK_FORCE_ASSIGN;
buffer_copy_string_len(token, CONST_STR_LEN(":="));
+ } else {
+ /* ERROR */
+ log_error_write(srv, __FILE__, __LINE__, "sbsdsds",
+ "source:", t->source,
+ "line:", t->line, "pos:", t->line_pos,
+ "unexpected character ':'");
+ return -1;
}
break;