on master help sign in
Merge pull request #4012 from melted/issue_4001

Fix return check from idrnet_getaddrinfo

commit916111bfda49dd8596029ca70dec060b73fa5d65 authorNiklas Larsson <metaniklas@gmail.com> dateTue 22 Aug 2017, 03:22 (9 years ago) parente87d767673acd6
1 file changed+1−1
rts/idris_net.c+1−1
rts/idris_net.c+1−1
@@ -82,7 +82,7 @@ int idrnet_bind(int sockfd, int family, int socket_type, char* host, int port) {
8282int idrnet_connect(int sockfd, int family, int socket_type, char* host, int port) {
8383 struct addrinfo* remote_host;
8484 int addr_res = idrnet_getaddrinfo(&remote_host, host, port, family, socket_type);
85− if (addr_res == -1) {
85+ if (addr_res != 0) {
8686 return -1;
8787 }
8888