X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ssl%2Ft1_enc.c;h=3a349920d9cd2144e73472f43b98f46fc59c74cf;hb=4c3296960de32e5abfbb8f4703a2ce624d82669f;hp=ee511a6512169857d527403b8365927e761e2abe;hpb=0e1dba934fa53e9736e9156b9e25bd1010290149;p=oweals%2Fopenssl.git diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index ee511a6512..3a349920d9 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -793,8 +793,8 @@ int tls1_final_finish_mac(SSL *s, { if (mask & s->s3->tmp.new_cipher->algorithm2) { - int hashsize = EVP_MD_size(md); - if ((size_t)hashsize > (sizeof buf - (size_t)(q-buf))) + unsigned int hashsize = EVP_MD_size(md); + if (hashsize > (sizeof buf - (size_t)(q-buf))) { /* internal error: 'buf' is too small for this cipersuite! */ err = 1;