summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wocky-test-connector-server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/wocky-test-connector-server.c b/tests/wocky-test-connector-server.c
index 72776d5..b13987d 100644
--- a/tests/wocky-test-connector-server.c
+++ b/tests/wocky-test-connector-server.c
@@ -1285,8 +1285,9 @@ feature_stanza (TestConnectorServer *self)
if (priv->problem.sasl != SERVER_PROBLEM_NO_SASL)
{
- priv->sasl = test_sasl_auth_server_new (NULL, priv->mech,
- priv->user, priv->pass, NULL, priv->problem.sasl, FALSE);
+ if (priv->sasl == NULL)
+ priv->sasl = test_sasl_auth_server_new (NULL, priv->mech,
+ priv->user, priv->pass, NULL, priv->problem.sasl, FALSE);
test_sasl_auth_server_set_mechs (G_OBJECT (priv->sasl), feat);
}