forked from wolfSSL/wolfssl
Fix in ED448 wc_ed448_check_key
function for possible dereference of a null pointer.
This commit is contained in:
@ -837,7 +837,7 @@ int wc_ed448_check_key(ed448_key* key)
|
||||
ret = BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
if (!key->pubKeySet) {
|
||||
if (ret == 0 && !key->pubKeySet) {
|
||||
ret = PUBLIC_KEY_E;
|
||||
}
|
||||
if (ret == 0) {
|
||||
|
Reference in New Issue
Block a user