0.9.8 version of PR#1931 fix.
[oweals/openssl.git] / ssl / ssl_ciph.c
index 52f91cfe6095a72a0bdec2b99e03caf3516255de..5aa03ee4495df2d60a47c638b2e866a7d3baf6a8 100644 (file)
@@ -1091,6 +1091,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *ssl_method,
        *cipher_list_by_id = tmp_cipher_list;
        (void)sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id,ssl_cipher_ptr_id_cmp);
 
+       sk_SSL_CIPHER_sort(*cipher_list_by_id);
        return(cipherstack);
        }