fix sock_connect() to return -1 on all errors (Frederick Nacino)

This commit is contained in:
marschap
2006-05-07 10:08:31 +00:00
parent 656c5d8858
commit 5fc4dfc562
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ sock_connect (char *host, unsigned short int port)
#endif
report (RPT_ERR, "sock_connect: connect failed");
shutdown (sock, SHUT_RDWR);
return 0; // Normal exit if server doesn't exist...
return -1;
}
#ifndef WINSOCK2