From 6858714a312dd0d1401561a9dd235c8f18fab85c Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Thu, 14 Apr 2022 14:36:13 -0400 Subject: [PATCH] Update bpxskt.c Signed-off-by: 1000TurquoisePogs --- c/bpxskt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/c/bpxskt.c b/c/bpxskt.c index 2893ac6bd..9799fba85 100644 --- a/c/bpxskt.c +++ b/c/bpxskt.c @@ -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)); @@ -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) {