Skip to content

Commit

Permalink
Fix bug in redis parsing protocol when we're parsing the arguments to…
Browse files Browse the repository at this point in the history
… the EVAL/EVALSHA command.
  • Loading branch information
tan-lawrence committed Jan 25, 2013
1 parent ea515a2 commit 9fc3606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/nc_redis.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ redis_parse_req(struct msg *r)
case SW_ARGN_LF: case SW_ARGN_LF:
switch (ch) { switch (ch) {
case LF: case LF:
if (redis_argn(r)) { if (redis_argn(r) || redis_argeval(r)) {
if (r->rnarg == 0) { if (r->rnarg == 0) {
goto done; goto done;
} }
Expand Down

0 comments on commit 9fc3606

Please sign in to comment.