Commit 693b6405 authored by Geoff Garside's avatar Geoff Garside Committed by antirez
Browse files

Use inet_pton(3) in clusterCommand.

Replace inet_aton(3) call with the more future proof inet_pton(3)
function which is capable of handling additional address families.
parent a6ea707c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment