1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

COV225133: coverity false positive

This commit is contained in:
Andy Green 2019-09-17 09:25:18 +01:00
parent 6625cc059c
commit cd207447e0

View file

@ -103,6 +103,8 @@ lws_genhmac_init(struct lws_genhmac_ctx *ctx, enum lws_genhmac_types type,
HMAC_CTX_init(&ctx->ctx);
#endif
ctx->evp_type = 0; /* coverity unable to see we set this or fail */
switch (type) {
case LWS_GENHMAC_TYPE_SHA256:
ctx->evp_type = EVP_sha256();