summaryrefslogtreecommitdiff
path: root/app/openssl/ssl/s3_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openssl/ssl/s3_enc.c')
-rw-r--r--app/openssl/ssl/s3_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/openssl/ssl/s3_enc.c b/app/openssl/ssl/s3_enc.c
index 90fbb180..53b94b7c 100644
--- a/app/openssl/ssl/s3_enc.c
+++ b/app/openssl/ssl/s3_enc.c
@@ -728,7 +728,7 @@ int n_ssl3_mac(SSL *ssl, unsigned char *md, int send)
}
t=EVP_MD_CTX_size(hash);
- if (t < 0)
+ if (t < 0 || t > 20)
return -1;
md_size=t;
npad=(48/md_size)*md_size;