Fixed check for rng in session ID creation of libfast
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 17:07:53 +0000 (19:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 17:07:53 +0000 (19:07 +0200)
src/libfast/session.c

index 99f2dcb..cf14dbe 100644 (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;
        }