Skip to content

Commit

Permalink
fix: bad condition in test
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Nov 16, 2024
1 parent 0260e6e commit cb2182a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NetSSL_OpenSSL/testsuite/src/SecureStreamSocketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void SecureStreamSocketTest::testSendReceive()
{
received.append(buffer, rc);
}
else if (n == 0)
else if (rc == 0)
{
break;
}
Expand Down Expand Up @@ -188,7 +188,7 @@ void SecureStreamSocketTest::testNB()
{
received.append(buffer, rc);
}
else if (n == 0)
else if (rc == 0)
{
break;
}
Expand Down
4 changes: 2 additions & 2 deletions NetSSL_Win/testsuite/src/SecureStreamSocketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void SecureStreamSocketTest::testSendReceive()
{
received.append(buffer, rc);
}
else if (n == 0)
else if (rc == 0)
{
break;
}
Expand Down Expand Up @@ -188,7 +188,7 @@ void SecureStreamSocketTest::testNB()
{
received.append(buffer, rc);
}
else if (n == 0)
else if (rc == 0)
{
break;
}
Expand Down

0 comments on commit cb2182a

Please sign in to comment.