Fixed RNG crypto tester

This commit is contained in:
Tobias Brunner
2012-09-28 19:13:40 +02:00
parent 3973ffa4f6
commit 91a8dc2dec
+1 -3
View File
@@ -1075,8 +1075,7 @@ METHOD(crypto_tester_t, test_rng, bool,
{
goto failure;
}
if (!failed)
{ /* write bytes into existing buffer */
/* write bytes into existing buffer */
memset(data.ptr, 0, data.len);
if (!rng->get_bytes(rng, vector->len, data.ptr))
{
@@ -1086,7 +1085,6 @@ METHOD(crypto_tester_t, test_rng, bool,
{
goto failure;
}
}
failed = FALSE;
failure: