merge with SYNC-B4-REL and sync with sylpheed 0.6.5cvs5
[claws.git] / src / socket.c
index d739a71846fba95cd3832b0e7538227d034d409b..93617be52f7dbb4088aa7ac9ff7f82183f8b1fd6 100644 (file)
@@ -207,8 +207,8 @@ static gint sock_connect_by_hostname(gint sock, const gchar *hostname,
                }
 
                if (hp->h_length != 4 && hp->h_length != 8) {
-                       h_errno = errno = 0;
                        fprintf(stderr, "illegal address length received for host %s\n", hostname);
+                       errno = 0;
                        return -1;
                }