summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index ff4d251..2589675 100644
--- a/helper.c
+++ b/helper.c
@@ -57,7 +57,7 @@ int helper_connect4(char *address, int port, char *ip)
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
- const int ret = getaddrinfo(NULL, address, &hints, &result);
+ const int ret = getaddrinfo(address, NULL, &hints, &result);
if (ret != 0) {
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret));
return -1;