@@ -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