wolfssl: Properly handle failure to initialize SHAKE_256
This commit is contained in:
@@ -143,6 +143,7 @@ xof_t *wolfssl_xof_create(ext_out_function_t algorithm)
|
|||||||
if (wc_InitShake256(&this->shake, NULL, 0) != 0)
|
if (wc_InitShake256(&this->shake, NULL, 0) != 0)
|
||||||
{
|
{
|
||||||
free(this);
|
free(this);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return &this->public;
|
return &this->public;
|
||||||
|
|||||||
Reference in New Issue
Block a user