提交 b6d1bd4e 编写于 作者: P Pauli

evp: fix coverity 1473381 - dereference after null check

Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14589)
上级 72ded6f2
......@@ -1512,8 +1512,14 @@ static int get_payload_group_name(enum state state,
return 0;
}
if (ctx->p2 != NULL)
ctx->p1 = strlen(ctx->p2);
/*
* Quietly ignoring unknown groups matches the behaviour on the provider
* side.
*/
if (ctx->p2 == NULL)
return 1;
ctx->p1 = strlen(ctx->p2);
return default_fixup_args(state, translation, ctx);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册