newhope: Properly release allocated arrays if RNG can't be created
This commit is contained in:
@@ -464,7 +464,7 @@ METHOD(diffie_hellman_t, set_other_public_value, bool,
|
|||||||
if (!rng)
|
if (!rng)
|
||||||
{
|
{
|
||||||
DBG1(DBG_LIB, "could not instatiate random source");
|
DBG1(DBG_LIB, "could not instatiate random source");
|
||||||
return FALSE;
|
goto end;
|
||||||
}
|
}
|
||||||
if (!rng->get_bytes(rng, seed_len, noise_seed.ptr))
|
if (!rng->get_bytes(rng, seed_len, noise_seed.ptr))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user