From b66ccbfaa7932ea50e246010d91764c97313ac7c Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Mon, 14 Dec 2015 03:37:28 +0000 Subject: initialize md_len to 0 for readability to quell warnings. ok guenther@ --- lib/libssl/src/crypto/evp/m_sigver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libssl') diff --git a/lib/libssl/src/crypto/evp/m_sigver.c b/lib/libssl/src/crypto/evp/m_sigver.c index cc0927325b7..579325be671 100644 --- a/lib/libssl/src/crypto/evp/m_sigver.c +++ b/lib/libssl/src/crypto/evp/m_sigver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m_sigver.c,v 1.4 2014/07/11 08:44:48 jsing Exp $ */ +/* $OpenBSD: m_sigver.c,v 1.5 2015/12/14 03:37:27 beck Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -136,7 +136,7 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) if (sigret) { EVP_MD_CTX tmp_ctx; unsigned char md[EVP_MAX_MD_SIZE]; - unsigned int mdlen; + unsigned int mdlen = 0; EVP_MD_CTX_init(&tmp_ctx); if (!EVP_MD_CTX_copy_ex(&tmp_ctx, ctx)) return 0; @@ -171,7 +171,7 @@ EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen) EVP_MD_CTX tmp_ctx; unsigned char md[EVP_MAX_MD_SIZE]; int r; - unsigned int mdlen; + unsigned int mdlen = 0; int vctx; if (ctx->pctx->pmeth->verifyctx) -- cgit v1.2.3