Check EVP_Cipher return values for SSL2
[oweals/openssl.git] / ssl / ssl_txt.c
index 6679919c5a2f11289f983fae948cccd20ae7a071..093d84076f7e0fa936bce6b33850807c418f7a81 100644 (file)
@@ -218,7 +218,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
                {
                SSL_COMP *comp = NULL;
 
-               ssl_cipher_get_comp(x, &comp);
+               ssl_cipher_get_evp(x,NULL,NULL,NULL,NULL,&comp);
                if (comp == NULL)
                        {
                        if (BIO_printf(bp,"\n    Compression: %d",x->compress_meth) <= 0) goto err;