mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
add a control when establishing a ssl connection and the sockfd is -1
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2331 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5d128e77e9
commit
72a3396a58
@ -739,7 +739,16 @@ int pqissl::Basic_Connection_Complete()
|
|||||||
"pqissl::Basic_Connection_Complete() Wrong Mode");
|
"pqissl::Basic_Connection_Complete() Wrong Mode");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// use select on the opened socket.
|
|
||||||
|
if (sockfd == -1)
|
||||||
|
{
|
||||||
|
rslog(RSL_DEBUG_BASIC, pqisslzone,
|
||||||
|
"pqissl::Basic_Connection_Complete() problem with the socket descriptor. Aborting");
|
||||||
|
reset();
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// use select on the opened socket.
|
||||||
// Interestingly - This code might be portable....
|
// Interestingly - This code might be portable....
|
||||||
|
|
||||||
fd_set ReadFDs, WriteFDs, ExceptFDs;
|
fd_set ReadFDs, WriteFDs, ExceptFDs;
|
||||||
|
Loading…
Reference in New Issue
Block a user