Commit e0926ef4 authored by Benjamin Kaduk's avatar Benjamin Kaduk Committed by Matt Caswell
Browse files

De-obfuscate



No need to break out of the loop and repeat the loop termination
condition when we can just return.

Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2949)
parent a74db02a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,10 +102,10 @@ static int use_ecc(SSL *s)
        if ((alg_k & (SSL_kECDHE | SSL_kECDHEPSK))
                || (alg_a & SSL_aECDSA)
                || c->min_tls >= TLS1_3_VERSION)
            break;
            return 1;
    }

    return i < end;
    return 0;
}

int tls_construct_ctos_ec_pt_formats(SSL *s, WPACKET *pkt, unsigned int context,