sanity check for the bulk argument in protocol parsing code, fixing issue 146

This commit is contained in:
antirez
2010-08-24 11:45:05 +02:00
parent e193873025
commit a679185aa5
2 changed files with 14 additions and 5 deletions

View File

@ -283,7 +283,7 @@ typedef struct redisClient {
sds querybuf;
robj **argv, **mbargv;
int argc, mbargc;
int bulklen; /* bulk read len. -1 if not in bulk read mode */
long bulklen; /* bulk read len. -1 if not in bulk read mode */
int multibulk; /* multi bulk command format active */
list *reply;
int sentlen;