mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
fix for coverity issue 394677
This commit is contained in:
@ -3283,6 +3283,8 @@ int wolfSSL_EVP_PKEY_bits(const WOLFSSL_EVP_PKEY *pkey)
|
||||
if (pkey == NULL) return 0;
|
||||
WOLFSSL_ENTER("wolfSSL_EVP_PKEY_bits");
|
||||
if ((bytes = wolfSSL_EVP_PKEY_size((WOLFSSL_EVP_PKEY*)pkey)) ==0) return 0;
|
||||
if (bytes < 0)
|
||||
return 0;
|
||||
return bytes*8;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user