mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-21 09:25:29 -04:00
BUG/MINOR: jws: Add missing return value check (EVP_PKEY_get_bn_param)
Two calls of 'EVP_PKEY_get_bn_param' did not have their return value checked. This patch can be backported up to 3.2.
This commit is contained in:
parent
307294b30a
commit
b786eaf1b1
1 changed files with 4 additions and 2 deletions
|
|
@ -59,8 +59,10 @@ static size_t EVP_PKEY_EC_to_pub_jwk(EVP_PKEY *pkey, char *dst, size_t dsize)
|
|||
size_t curvelen;
|
||||
int nid;
|
||||
|
||||
EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_EC_PUB_X, &x);
|
||||
EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_EC_PUB_Y, &y);
|
||||
if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_EC_PUB_X, &x) == 0)
|
||||
goto out;
|
||||
if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_EC_PUB_Y, &y) == 0)
|
||||
goto out;
|
||||
|
||||
if (EVP_PKEY_get_utf8_string_param(pkey, OSSL_PKEY_PARAM_GROUP_NAME, curve, sizeof(curve), &curvelen) == 0)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue