on master help sign in
Merge pull request #4012 from melted/issue_4001
916111bNiklas Larsson
rts/idris_net.c+1−1
@@ -82,7 +82,7 @@ int idrnet_bind(int sockfd, int family, int socket_type, char* host, int port) {
82int idrnet_connect(int sockfd, int family, int socket_type, char* host, int port) {
82int idrnet_connect(int sockfd, int family, int socket_type, char* host, int port) {
83 struct addrinfo* remote_host;
83 struct addrinfo* remote_host;
84 int addr_res = idrnet_getaddrinfo(&remote_host, host, port, family, socket_type);
84 int addr_res = idrnet_getaddrinfo(&remote_host, host, port, family, socket_type);
85− if (addr_res == -1) {
85+ if (addr_res != 0) {
86 return -1;
86 return -1;
87 }
87 }
88
88