Fix coverity issue: CID 1466483 - Improper use of Negative value in dh_ctrl.c

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12847)
master
Shane Lontis 3 years ago
parent 0f0b7dfbe5
commit 9951eaf467

@ -500,6 +500,9 @@ int EVP_PKEY_CTX_set0_dh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char *ukm, int len)
int ret;
OSSL_PARAM params[2], *p = params;
if (len <= 0)
return -1;
ret = dh_param_derive_check(ctx);
if (ret != 1)
return ret;

Loading…
Cancel
Save