improved error checking and some fixes
[openssl.git] / ssl / ssl_txt.c
index fd0c55c1270c23d7fe1384c7e8b906056ed1e954..39cf55cbfdff9f11786e9d0b4b3163fabd366edf 100644 (file)
@@ -153,7 +153,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
 #endif /* OPENSSL_NO_KRB5 */
        if (x->compress_meth != 0)
                {
-               SSL_COMP *comp;
+               SSL_COMP *comp = NULL;
 
                ssl_cipher_get_evp(x,NULL,NULL,&comp);
                if (comp == NULL)