- Cosmetic changes to sicsget and counter
- Fixed a bug when NETconnect would come back with errno EINPROGRESS which is no error really
This commit is contained in:
@ -287,9 +287,9 @@ mkChannel *NETConnectWithFlags(char *name, int port, int flags)
|
||||
|
||||
iRet = connect(pRes->sockid, (struct sockaddr *) &(pRes->adresse),
|
||||
sizeof(struct sockaddr_in));
|
||||
if (iRet < 0) {
|
||||
close(pRes->sockid);
|
||||
if (iRet < 0 && errno ) {
|
||||
if (errno != EINPROGRESS) {
|
||||
close(pRes->sockid);
|
||||
free(pRes);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user