diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-02-18 15:30:24 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-02-18 15:30:24 +0100 |
commit | 7ba7fdf7ebfc73a21ef8fd0c7aee482414914c45 (patch) | |
tree | 5e413c6fe4f6a1ef277132d2e806d3c7987ea38a | |
parent | f78e95b4c69949166670202edc7371deb92e7a6c (diff) |
Fix bug where authorization result was never assigned
-rw-r--r-- | jrt/src/com/yahoo/jrt/TlsCryptoSocket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java index c12c8ac88a3..31d76bc7362 100644 --- a/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java +++ b/jrt/src/com/yahoo/jrt/TlsCryptoSocket.java @@ -94,7 +94,7 @@ public class TlsCryptoSocket implements CryptoSocket { channelRead(); break; case NEED_WORK: - if (authorizationResult != null) { + if (authorizationResult == null) { PeerAuthorizerTrustManager.getAuthorizationResult(sslEngine) // only available during handshake .ifPresent(result -> { if (!result.succeeded()) { |