summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-02-09 19:50:34 +0100
committerAndy Polyakov <appro@openssl.org>2013-02-09 19:50:34 +0100
commit4d8da30fc1e83ce85a3f7ceec6624121d40efb89 (patch)
treef394ead0b3de8c540d6a675183d2217f33bdcbaf
parent579f3a631ebeef5eb0135977640a835968d3ad6c (diff)
downloadopenssl-new-4d8da30fc1e83ce85a3f7ceec6624121d40efb89.tar.gz
ssl/s3_[clnt|srvr].c: fix warnings.
-rw-r--r--ssl/s3_clnt.c3
-rw-r--r--ssl/s3_srvr.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c
index 7b4bc6304d..344e2eb1af 100644
--- a/ssl/s3_clnt.c
+++ b/ssl/s3_clnt.c
@@ -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
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index 5e1007077f..bfb8480540 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -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.