ROLE command: array len fixed for slave output.

This commit is contained in:
antirez 2014-06-21 11:17:18 +02:00
parent fceef8e0dd
commit 7970d53997

View File

@ -1355,7 +1355,7 @@ void roleCommand(redisClient *c) {
} else {
char *slavestate = NULL;
addReplyMultiBulkLen(c,4);
addReplyMultiBulkLen(c,5);
addReplyBulkCBuffer(c,"slave",5);
addReplyBulkCString(c,server.masterhost);
addReplyLongLong(c,server.masterport);