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.

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

                Created:
                Updated:
                Resolved: