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 aa43c10403
commit fd7df34d47

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) {