diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-20 09:52:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-20 09:54:19 +0000 |
commit | f1e2848544e198ef0f35acb3dcfd5c7d48153b51 (patch) | |
tree | 2c7edd5fd09b1060fac2f744762134fe7e6e46f4 /main/loudmouth/01-fix-sasl-md5-digest-uri.patch | |
parent | 4917c6fd5f8db34e84adeb09a992fdd490a75404 (diff) | |
download | aports-f1e2848544e198ef0f35acb3dcfd5c7d48153b51.tar.bz2 aports-f1e2848544e198ef0f35acb3dcfd5c7d48153b51.tar.xz |
main/loudmouth: moved from testing
and add compile fix
Diffstat (limited to 'main/loudmouth/01-fix-sasl-md5-digest-uri.patch')
-rw-r--r-- | main/loudmouth/01-fix-sasl-md5-digest-uri.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/loudmouth/01-fix-sasl-md5-digest-uri.patch b/main/loudmouth/01-fix-sasl-md5-digest-uri.patch new file mode 100644 index 0000000000..872d93553b --- /dev/null +++ b/main/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, + |