diff --git a/NetSSL_OpenSSL/testsuite/src/SecureStreamSocketTest.cpp b/NetSSL_OpenSSL/testsuite/src/SecureStreamSocketTest.cpp index bf4a6a9b1..b252a7276 100644 --- a/NetSSL_OpenSSL/testsuite/src/SecureStreamSocketTest.cpp +++ b/NetSSL_OpenSSL/testsuite/src/SecureStreamSocketTest.cpp @@ -113,7 +113,7 @@ void SecureStreamSocketTest::testSendReceive() { received.append(buffer, rc); } - else if (n == 0) + else if (rc == 0) { break; } @@ -188,7 +188,7 @@ void SecureStreamSocketTest::testNB() { received.append(buffer, rc); } - else if (n == 0) + else if (rc == 0) { break; } diff --git a/NetSSL_Win/testsuite/src/SecureStreamSocketTest.cpp b/NetSSL_Win/testsuite/src/SecureStreamSocketTest.cpp index bf4a6a9b1..b252a7276 100644 --- a/NetSSL_Win/testsuite/src/SecureStreamSocketTest.cpp +++ b/NetSSL_Win/testsuite/src/SecureStreamSocketTest.cpp @@ -113,7 +113,7 @@ void SecureStreamSocketTest::testSendReceive() { received.append(buffer, rc); } - else if (n == 0) + else if (rc == 0) { break; } @@ -188,7 +188,7 @@ void SecureStreamSocketTest::testNB() { received.append(buffer, rc); } - else if (n == 0) + else if (rc == 0) { break; }