diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index f1924c05..aa0d7177 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -334,7 +334,7 @@ int ssl3_final_finish_mac(SSL *s, const char *sender, int len, uint8_t *p) { static int ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len, uint8_t *p) { unsigned int ret; - int npad, n; + size_t npad, n; unsigned int i; uint8_t md_buf[EVP_MAX_MD_SIZE]; EVP_MD_CTX ctx; @@ -357,9 +357,6 @@ static int ssl3_handshake_mac(SSL *s, int md_nid, const char *sender, int len, } n = EVP_MD_CTX_size(&ctx); - if (n < 0) { - return 0; - } npad = (48 / n) * n; if (sender != NULL) {