correct debug 4.1.6
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 2 Sep 2007 15:59:59 +0000 (15:59 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 2 Sep 2007 15:59:59 +0000 (15:59 -0000)
src/charon/daemon.c

index a03a992..08940a2 100644 (file)
@@ -296,14 +296,14 @@ static bool initialize(private_daemon_t *this, bool syslog, level_t levels[])
 
 #ifdef INTEGRITY_TEST
        DBG1(DBG_DMN, "integrity test of libstrongswan code");
-       if (!fips_verify_hmac_signature(hmac_key, hmac_signature))
+       if (fips_verify_hmac_signature(hmac_key, hmac_signature))
        {
                DBG1(DBG_DMN, "  integrity test passed");
-               return FALSE;
        }
        else
        {
-               DBG1(DBG_DMN, "  integrity test passed");
+               DBG1(DBG_DMN, "  integrity test failed");
+               return FALSE;
        }
 #endif /* INTEGRITY_TEST */