summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2015-12-14 03:37:28 +0000
committerBob Beck <beck@cvs.openbsd.org>2015-12-14 03:37:28 +0000
commitb66ccbfaa7932ea50e246010d91764c97313ac7c (patch)
tree399dec667d8c6a9b723b9c41523a88bf6384251d /lib/libssl
parentee79c8162553aa644b1459d96c3407ee0c87ddee (diff)
initialize md_len to 0 for readability to quell warnings.
ok guenther@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/crypto/evp/m_sigver.c6
1 files changed, 3 insertions, 3 deletions
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)