ssl/s3_[clnt|srvr].c: fix warnings.
authorAndy Polyakov <appro@openssl.org>
Sat, 9 Feb 2013 18:50:34 +0000 (19:50 +0100)
committerAndy Polyakov <appro@openssl.org>
Sat, 9 Feb 2013 18:50:34 +0000 (19:50 +0100)
ssl/s3_clnt.c
ssl/s3_srvr.c

index 7b4bc6304d3e391b7cda33029b8cacaab224f011..344e2eb1af8cd7ea89188e92d7e6714963ffac5e 100644 (file)
@@ -986,7 +986,10 @@ int ssl3_get_server_hello(SSL *s)
         * client authentication.
         */
        if (TLS1_get_version(s) < TLS1_2_VERSION && !ssl3_digest_cached_records(s))
+               {
+               al = SSL_AD_INTERNAL_ERROR;
                goto f_err;
+               }
        /* lets get the compression algorithm */
        /* COMPRESSION */
 #ifdef OPENSSL_NO_COMP
index 5e1007077f5f4b9bc562b3f0f7b74d8627c09d90..bfb84805400cc49235c29d42db94a950f2df7cc5 100644 (file)
@@ -1391,7 +1391,10 @@ int ssl3_get_client_hello(SSL *s)
        if (TLS1_get_version(s) < TLS1_2_VERSION || !(s->verify_mode & SSL_VERIFY_PEER))
                {
                if (!ssl3_digest_cached_records(s))
+                       {
+                       al = SSL_AD_INTERNAL_ERROR;
                        goto f_err;
+                       }
                }
        
        /* we now have the following setup.