Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8214321

Misleading code in SSLCipher

XMLWordPrintable

    • 11
    • b22
    • Not verified

        One potential code issue in SSLCipher.java:

            SSLWriteCipher createWriteCipher(Authenticator authenticator,
                    ProtocolVersion protocolVersion,
                    SecretKey key, IvParameterSpec iv,
                    SecureRandom random) throws GeneralSecurityException {
        - if (readCipherGenerators.length == 0) {
        + if (writeCipherGenerators.length == 0) {
                    return null;
                }

        The code should have no impact, but it is nice to make an update for readability.

              xuelei Xuelei Fan
              xuelei Xuelei Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: