diff --git a/src/cli.c b/src/cli.c index ec164aebd..3744ac3ac 100644 --- a/src/cli.c +++ b/src/cli.c @@ -2324,7 +2324,7 @@ int pcli_parse_request(struct stream *s, struct channel *req, char **errmsg, int end = p + reql; /* there is no end to this command, need more to parse ! */ - if (*(end-1) != '\n') { + if (!reql || *(end-1) != '\n') { return -1; }