From: Dr. Stephen Henson Date: Tue, 31 Jan 2017 16:39:53 +0000 (+0000) Subject: Cosmetic change X-Git-Tag: OpenSSL_1_1_1-pre1~2495 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f4bf115a1bc0391cba75d30f6c1941edc88f926;p=oweals%2Fopenssl.git Cosmetic change Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2339) --- diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index 627e8cdda8..f965ae1873 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -1584,12 +1584,9 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt) ciphers = NULL; /* check if some cipher was preferred by call back */ - pref_cipher = - pref_cipher ? pref_cipher : ssl3_choose_cipher(s, - s-> - session->ciphers, - SSL_get_ciphers - (s)); + if (pref_cipher == NULL) + pref_cipher = ssl3_choose_cipher(s, s->session->ciphers, + SSL_get_ciphers(s)); if (pref_cipher == NULL) { al = SSL_AD_HANDSHAKE_FAILURE; SSLerr(SSL_F_TLS_PROCESS_CLIENT_HELLO, SSL_R_NO_SHARED_CIPHER);