Fix in ED448 wc_ed448_check_key function for possible dereference of a null pointer.

This commit is contained in:
David Garske
2020-08-24 07:31:06 -07:00
parent 7d45e85b03
commit 47cc8d232a

View File

@ -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) {