Skip to content
Snippets Groups Projects
Commit d8287fb0 authored by deuce's avatar deuce
Browse files

Fix most of the Coverity issues.

parent 819939da
Branches
Tags
No related merge requests found
......@@ -404,7 +404,6 @@ enum failure_reason {
,FAILURE_CANT_CREATE
,FAILURE_CONNECT_ERROR
,FAILURE_ABORTED
,FAILURE_GENERAL
,FAILURE_DISCONNECTED
};
......@@ -576,12 +575,6 @@ connect_failed:
uifcmsg("Connection Aborted.", "`Connection Aborted`\n\n"
"Connection to the remote system aborted by keystroke.");
break;
case FAILURE_GENERAL:
sprintf(str,"Connect error (%d)!",ERROR_VALUE);
uifcmsg(str
,"`SyncTERM failed to connect`\n\n"
"The call to select() returned an unexpected error code.");
break;
case FAILURE_DISCONNECTED:
sprintf(str,"Connect error (%d)!",ERROR_VALUE);
uifcmsg(str
......@@ -590,6 +583,7 @@ connect_failed:
break;
}
conn_close();
if (sock != INVALID_SOCKET)
closesocket(sock);
return(INVALID_SOCKET);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment