Fixed check for rng in session ID creation of libfast

This commit is contained in:
Tobias Brunner committed 2012-09-28 19:07:53 +02:00
1 parent 6c10cecebf
commit 9181784fb1
1 file changed
+1 -1
+1 -1
View File
@@ -84,7 +84,7 @@ static bool create_sid(private_session_t *this)
rng_t *rng;
rng = lib->crypto->create_rng(lib->crypto, RNG_WEAK);
if (rng)
if (!rng)
{
return FALSE;
}