Use proper return value for ietf_attr_t.compare.
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:10:18 +0000 (13:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:50 +0000 (13:48 +0200)
src/libstrongswan/credentials/ietf_attributes/ietf_attributes.c

index 372e0af..fecc991 100644 (file)
@@ -331,7 +331,7 @@ static bool matches(private_ietf_attributes_t *this, private_ietf_attributes_t *
        /* look for at least one common attribute */
        while (TRUE)
        {
-               bool cmp = attr_a->compare(attr_a, attr_b);
+               int cmp = attr_a->compare(attr_a, attr_b);
 
                if (cmp == 0)
                {