Permalink
Browse files

Use hints

  • Loading branch information...
1 parent 7da391d commit d18ca68121d49c3d89bdae735cc70b5af49d1af8 @jedisct1 committed Nov 24, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/replication_master.c
  2. +1 −1 src/replication_slave.c
View
@@ -261,7 +261,7 @@ int start_replication_master(HttpHandlerContext * const context,
hints.ai_flags = EVUTIL_AI_PASSIVE | EVUTIL_AI_ADDRCONFIG;
const int gai_err = evutil_getaddrinfo(replication_master_ip,
replication_master_port,
- NULL, &ai);
+ &hints, &ai);
if (gai_err != 0) {
logfile(context, LOG_ERR,
"Unable to start the replication service: [%s]",
View
@@ -273,7 +273,7 @@ int start_replication_slave(HttpHandlerContext * const context,
hints.ai_flags = 0;
const int gai_err = evutil_getaddrinfo(replication_master_ip,
replication_master_port,
- NULL, &ai);
+ &hints, &ai);
if (gai_err != 0) {
logfile(context, LOG_ERR,
"Unable to resolve the replication slave address: [%s]",

0 comments on commit d18ca68

Please sign in to comment.