use of streq
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 30 May 2006 11:03:55 +0000 (11:03 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 30 May 2006 11:03:55 +0000 (11:03 -0000)
src/charon/sa/ike_sa.c

index 1dbcac4..fdaee7f 100644 (file)
@@ -924,7 +924,7 @@ static void log_status(private_ike_sa_t *this, logger_t *logger, char *name)
        /* only log if name == NULL or name == connection_name */
        if (name)
        {
-               if (strcmp(this->connection->get_name(this->connection), name) != 0)
+               if (streq(this->connection->get_name(this->connection), name))
                {
                        return;
                }