Skip to content

Commit

Permalink
Fix overallocation in directed cluster MULTIBULK handling.
Browse files Browse the repository at this point in the history
Addresses #1611
  • Loading branch information
michael-grunder committed Jul 31, 2019
1 parent b565c84 commit cf93649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ cluster_read_sock_resp(RedisSock *redis_sock, REDIS_REPLY_TYPE type,
case TYPE_MULTIBULK:
r->elements = len;
if (len != (size_t)-1) {
r->element = ecalloc(len, sizeof(clusterReply*)*len);
r->element = ecalloc(len, sizeof(clusterReply*));
cluster_multibulk_resp_recursive(redis_sock, len, r->element,
line_reply != NULL, &err);
}
Expand Down

0 comments on commit cf93649

Please sign in to comment.