diff --git a/src/client/host.c b/src/client/host.c index 256aa8f5..efa547aa 100644 --- a/src/client/host.c +++ b/src/client/host.c @@ -86,7 +86,7 @@ tcp_connect(char *host, char *serv) close(sockfd); /* ignore this one */ } while ((res = res->ai_next) != NULL); - if (res == NULL) { /* errno set from final connect() */ + if (res == NULL) { /* errno from final socket() or connect() */ fprintf(stderr, "Can't connect to %s:%s: %s\n", host, serv, strerror(errno)); exit(1);