Commit 2c7972ce authored by zhaozhao.zz's avatar zhaozhao.zz Committed by antirez
Browse files

networking: just return C_OK if multibulk processing saw a <= 0 length.

parent 1203a04f
...@@ -1252,11 +1252,8 @@ int processMultibulkBuffer(client *c) { ...@@ -1252,11 +1252,8 @@ int processMultibulkBuffer(client *c) {
} }
c->qb_pos = (newline-c->querybuf)+2; c->qb_pos = (newline-c->querybuf)+2;
if (ll <= 0) {
sdsrange(c->querybuf,c->qb_pos,-1); if (ll <= 0) return C_OK;
c->qb_pos = 0;
return C_OK;
}
c->multibulklen = ll; c->multibulklen = ll;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment