aboutsummaryrefslogtreecommitdiffstats
path: root/testing/loudmouth/01-fix-sasl-md5-digest-uri.patch
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-01-03 05:06:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-16 15:41:16 +0000
commitb91d477a12229fcbf1bb723745d8e0b9386d3148 (patch)
tree95070dd18aac1a3e92a5f87463d985e5d4182a25 /testing/loudmouth/01-fix-sasl-md5-digest-uri.patch
parent040d8932239b6e90967869178b344f7e12d2aaab (diff)
downloadaports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.gz
aports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.bz2
aports-b91d477a12229fcbf1bb723745d8e0b9386d3148.tar.xz
Patch files for loudmouth
Diffstat (limited to 'testing/loudmouth/01-fix-sasl-md5-digest-uri.patch')
-rw-r--r--testing/loudmouth/01-fix-sasl-md5-digest-uri.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/loudmouth/01-fix-sasl-md5-digest-uri.patch b/testing/loudmouth/01-fix-sasl-md5-digest-uri.patch
new file mode 100644
index 0000000000..872d93553b
--- /dev/null
+++ b/testing/loudmouth/01-fix-sasl-md5-digest-uri.patch
@@ -0,0 +1,25 @@
+diff --git a/loudmouth/lm-connection.c b/loudmouth/lm-connection.c
+index 21c1bc2..ae8de94 100644
+--- a/loudmouth/lm-connection.c
++++ b/loudmouth/lm-connection.c
+@@ -1441,11 +1441,18 @@ lm_connection_authenticate (LmConnection *connection,
+ connection->effective_jid = g_strdup_printf ("%s/%s",
+ connection->jid, connection->resource);
+
+ if (connection->use_sasl) {
++ gchar *domain = NULL;
++
++ if (!connection_get_server_from_jid (connection->jid, &domain)) {
++ domain = g_strdup (connection->server);
++ }
++
+ lm_sasl_authenticate (connection->sasl,
+ username, password,
+- connection->server,
++ domain,
+ connection_sasl_auth_finished);
++ g_free (domain);
+
+ connection->features_cb =
+ lm_message_handler_new (connection_features_cb,
+