fix(tests): CodeQL warnings

This commit is contained in:
Günter Obiltschnig 2024-11-16 20:06:59 +01:00
parent c95ac60a6e
commit a106ebd1f1
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}