mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
networking: just return C_OK if multibulk processing saw a <= 0 length.
This commit is contained in:
parent
b89302c462
commit
e623bd22ba
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user