Mercurial > pidgin.yaz
changeset 21814:d20a1c190c2f
Fixed http://trac.adiumx.com/ticket/8529
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Tue, 11 Dec 2007 01:34:18 +0000 |
parents | d62d7412eca4 |
children | ef781d8d2ec1 57765d468458 |
files | libpurple/protocols/jabber/jabber.c libpurple/protocols/jabber/jabber.h |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Mon Dec 10 15:22:27 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Dec 11 01:34:18 2007 +0000 @@ -536,12 +536,13 @@ purple_input_remove(js->gc->inpa); js->gc->inpa = 0; js->gsc = purple_ssl_connect_with_host_fd(js->gc->account, js->fd, - jabber_login_callback_ssl, jabber_ssl_connect_failure, js->serverFQDN, js->gc); + jabber_login_callback_ssl, jabber_ssl_connect_failure, js->host, js->gc); } static void jabber_login_connect(JabberStream *js, const char *fqdn, const char *host, int port) { js->serverFQDN = g_strdup(fqdn); + js->host = g_strdup(host); if (purple_proxy_connect(js->gc, js->gc->account, host, port, jabber_login_callback, js->gc) == NULL) @@ -1279,6 +1280,7 @@ js->commands = g_list_delete_link(js->commands, js->commands); } g_free(js->server_name); + g_free(js->host); g_free(js->gmail_last_time); g_free(js->gmail_last_tid); g_free(js->old_msg);
--- a/libpurple/protocols/jabber/jabber.h Mon Dec 10 15:22:27 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.h Tue Dec 11 01:34:18 2007 +0000 @@ -191,6 +191,8 @@ char *old_uri; int old_length; char *old_track; + + char *host; }; typedef gboolean (JabberFeatureEnabled)(JabberStream *js, const gchar *shortname, const gchar *namespace);