Skip to content

Commit

Permalink
Missing else lead to crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
shailesh33 committed Mar 7, 2018
1 parent 0a0427e commit e6ba123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/dyn_redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -2952,7 +2952,7 @@ redis_fragment_argx(struct msg *r, struct server_pool *pool, struct rack *rack,
} else if (r->type == MSG_REQ_REDIS_DEL) {
status = msg_prepend_format(sub_msg, "*%d\r\n$3\r\ndel\r\n",
sub_msg->narg + 1);
} if (r->type == MSG_REQ_REDIS_EXISTS) {
} else if (r->type == MSG_REQ_REDIS_EXISTS) {
status = msg_prepend_format(sub_msg, "*%d\r\n$6\r\nexists\r\n",
sub_msg->narg + 1);
} else if (r->type == MSG_REQ_REDIS_MSET) {
Expand Down

0 comments on commit e6ba123

Please sign in to comment.