diff options
author | Simon Rettberg | 2014-06-02 14:37:27 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-06-02 14:37:27 +0200 |
commit | 741299dc6a691c1dd1ff0f3fb5144272a2903318 (patch) | |
tree | 07fd5dde30e84a7e978d1fbc7f9e67ce21d4b65b | |
parent | Port configurable (diff) | |
download | ldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.tar.gz ldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.tar.xz ldadp-741299dc6a691c1dd1ff0f3fb5144272a2903318.zip |
Fix getaddrinfo call
-rw-r--r-- | helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |