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

This commit is contained in:
zhaozhao.zz 2018-08-14 13:55:30 +08:00
parent 1c84c4431f
commit 04c3ae8020

View File

@ -1252,11 +1252,8 @@ int processMultibulkBuffer(client *c) {
}
c->qb_pos = (newline-c->querybuf)+2;
if (ll <= 0) {
sdsrange(c->querybuf,c->qb_pos,-1);
c->qb_pos = 0;
return C_OK;
}
if (ll <= 0) return C_OK;
c->multibulklen = ll;