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 08:20:50 +01:00
parent 10315893f7
commit b177435945

View file

@ -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();