diff --git a/src/cluster.c b/src/cluster.c index f59b4561..7531ab7c 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -2070,7 +2070,7 @@ void clusterCommand(redisClient *c) { long port; /* Perform sanity checks on IP/port */ - if (inet_aton(c->argv[2]->ptr,&sa.sin_addr) == 0) { + if (inet_pton(AF_INET,c->argv[0]->ptr,&(sa.sin_addr)) == 0) { addReplyError(c,"Invalid IP address in MEET"); return; }