From b1774359451c3604895269c4e9c7d6d05d8ca64a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 17 Sep 2019 08:20:50 +0100 Subject: [PATCH] COV225133: coverity false positive --- lib/tls/openssl/lws-genhash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tls/openssl/lws-genhash.c b/lib/tls/openssl/lws-genhash.c index aba9f35d4..60cecd949 100644 --- a/lib/tls/openssl/lws-genhash.c +++ b/lib/tls/openssl/lws-genhash.c @@ -106,6 +106,9 @@ lws_genhmac_init(struct lws_genhmac_ctx *ctx, enum lws_genhmac_types type, HMAC_CTX_init(&ctx->ctx); #endif + ctx->evp_type = 0; + ctx->type = type; + switch (type) { case LWS_GENHMAC_TYPE_SHA256: ctx->evp_type = EVP_sha256();