fix sock_connect() to return -1 on all errors (Frederick Nacino)
This commit is contained in:
@@ -226,7 +226,7 @@ int connect_and_setup()
|
||||
report(RPT_INFO, "Connecting to %s:%d", address, port);
|
||||
|
||||
sock = sock_connect(address, port);
|
||||
if (sock <= 0) {
|
||||
if (sock < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user