Skip to content

Commit

Permalink
Update bpxskt.c
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs authored Apr 14, 2022
1 parent 08823e4 commit 6858714
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions c/bpxskt.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ Socket *tcpClient3(SocketAddress *socketAddress,
int returnValue = 0;
*returnCode = *reasonCode = 0;
int *reasonCodePtr;
int status;

#ifndef _LP64
reasonCodePtr = (int*) (0x80000000 | ((int)reasonCode));
Expand Down Expand Up @@ -275,11 +274,11 @@ Socket *tcpClient3(SocketAddress *socketAddress,
/* EINPROGRESS is the expected return code here but we are just being careful by checking
for EWOULDBLOCK as well
*/
if (status != 0){
if (returnValue != 0){
returnValue = 0;
*returnCode = 0;
*reasonCode = 0;
status = tcpStatus(&tempSocket, timeoutInMillis, 1, returnCode, reasonCode);
int status = tcpStatus(&tempSocket, timeoutInMillis, 1, returnCode, reasonCode);
if (status == SD_STATUS_TIMEOUT) {
int sd = socketVector[0];
if (socketTrace) {
Expand Down

0 comments on commit 6858714

Please sign in to comment.