--- a/src/DlgShowLog.cpp
+++ b/src/DlgShowLog.cpp
@@ -105,7 +105,7 @@
 		HandleErrorResult(NULL, this, 0);
 		return;
 	}
-	if(!LOG_ENTRY_verify(log, (EVP_PKEY *)m_CaCert.GetPublicKey()))
+	if(LOG_ENTRY_verify(log, (EVP_PKEY *)m_CaCert.GetPublicKey()) <= 0)
 	{
 		DisplayMessage(this, _("The log signature is invalid"), wxOK | wxICON_ERROR);
 	}
