Fix SSLEngineTest handshake method.

Motivation:

We used && in the handshake method of SSLEngineTest but it must be ||.

Modifications:

Changed && to ||

Result:

Correctly check condition
This commit is contained in:
Norman Maurer 2016-01-26 10:06:31 +01:00
parent a6fd8a96bf
commit d4a1665941

View File

@ -397,7 +397,7 @@ public abstract class SSLEngineTest {
runDelegatedTasks(serverResult, serverEngine);
cTOs.compact();
sTOc.compact();
} while (isHandshaking(clientResult) && isHandshaking(serverResult));
} while (isHandshaking(clientResult) || isHandshaking(serverResult));
}
private static boolean isHandshaking(SSLEngineResult result) {