From f5da63e937cdd4a115ab14a53771d4d2aa009805 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sun, 2 Sep 2007 15:59:59 +0000 Subject: [PATCH] correct debug --- src/charon/daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/charon/daemon.c b/src/charon/daemon.c index a03a99272..08940a2ae 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -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 */