The Digest URI in the MD5 SASL Response wasn't set correctly when using
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 10 Oct 2009 18:24:58 +0200
changeset 600 7f0be2600f6d
parent 599 7207d1dbb86b
child 601 7972c1499f6d
The Digest URI in the MD5 SASL Response wasn't set correctly when using SRV records. committer: Frank Zschockelt <lm@freakysoft.de>
loudmouth/lm-connection.c
--- a/loudmouth/lm-connection.c	Thu Apr 23 14:46:51 2009 -0500
+++ b/loudmouth/lm-connection.c	Sat Oct 10 18:24:58 2009 +0200
@@ -1468,8 +1468,15 @@
     /* TODO: Break out Credentials (or use the already existing AuthReqData struct for *
      *       Username/Password and Resource                                            */
     if (connection->use_sasl) {
-        lm_sasl_authenticate (connection->sasl, auth_params, connection->server,
+        gchar *domain = NULL;
+
+        if (!connection_get_server_from_jid (connection->jid, &domain)) {
+            domain = g_strdup (connection->server);
+        }
+
+        lm_sasl_authenticate (connection->sasl, auth_params, domain,
                               connection_sasl_auth_finished);
+        g_free (domain);
 
         connection->features_cb  =
             lm_message_handler_new (connection_features_cb,