diff --git a/src/protocol/redis_parser.c b/src/protocol/redis_parser.c index 31c22749..6ca52efe 100644 --- a/src/protocol/redis_parser.c +++ b/src/protocol/redis_parser.c @@ -14,6 +14,7 @@ limitations under the License. Authors: Wu Jiaxu (wujiaxu@sogou-inc.com) + Liu Kai (liukaidx@sogou-inc.com) */ #include @@ -449,7 +450,7 @@ int redis_parser_append_message(const void *buf, size_t *size, memcpy((char *)parser->msgbuf + parser->msgsize, buf, *size); parser->msgsize += *size; - if (parser->msgsize && *(const char *)parser->msgbuf != '*') + if (parser->msgsize && isalpha(*(const char *)parser->msgbuf)) { while (parser->msgidx < parser->msgsize && *((const char *)parser->msgbuf + parser->msgidx) != '\n')