]> git.pond.sub.org Git - empserver/commitdiff
Fix a comment in tcp_connect()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 7 Apr 2013 11:25:02 +0000 (13:25 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:55 +0000 (06:57 +0200)
src/client/host.c

index 256aa8f520833823e26e94dc91fa7c2b2bd267f7..efa547aa776f2bbdec615e3a905e53e011d0a00f 100644 (file)
@@ -86,7 +86,7 @@ tcp_connect(char *host, char *serv)
        close(sockfd);          /* ignore this one */
     } while ((res = res->ai_next) != NULL);
 
        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);
        fprintf(stderr, "Can't connect to %s:%s: %s\n",
                host, serv, strerror(errno));
        exit(1);