Fix XAuth plugin feature matching
authorMartin Willi <martin@revosec.ch>
Mon, 19 Dec 2011 09:10:57 +0000 (10:10 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:25 +0000 (17:31 +0100)
src/libstrongswan/plugins/plugin_feature.c

index 6555e59..8b27c73 100644 (file)
@@ -98,7 +98,7 @@ bool plugin_feature_matches(plugin_feature_t *a, plugin_feature_t *b)
                                return streq(a->arg.custom, b->arg.custom);
                        case FEATURE_XAUTH_SERVER:
                        case FEATURE_XAUTH_PEER:
-                               return a->arg.xauth == b->arg.xauth;
+                               return streq(a->arg.xauth == b->arg.xauth);
                }
        }
        return FALSE;