summaryrefslogtreecommitdiffstats
path: root/helper.c
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-02 14:37:27 +0200
committerSimon Rettberg2014-06-02 14:37:27 +0200
commit741299dc6a691c1dd1ff0f3fb5144272a2903318 (patch)
tree07fd5dde30e84a7e978d1fbc7f9e67ce21d4b65b /helper.c
parentPort configurable (diff)
downloadldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.tar.gz
ldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.tar.xz
ldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.zip
Fix getaddrinfo call
Diffstat (limited to 'helper.c')
-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;