# HG changeset patch # User John Bailey # Date 1276524642 0 # Node ID 50380b60aa5693568e399b2f02e4078b003ae7dd # Parent 670ab0006c6108ea076cf539ef377deff2f4facf Fix a mistake I made with the fallback code. Refs #11986. diff -r 670ab0006c61 -r 50380b60aa56 libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Mon Jun 14 00:08:25 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Mon Jun 14 14:10:42 2010 +0000 @@ -3594,7 +3594,8 @@ PurpleConnection *gc = yd->gc; PurpleAccount *a = purple_connection_get_account(gc); gchar **strings = NULL, *cs_server = NULL; - int port = 0, stringslen = 0; + int port = purple_account_get_int(a, "port", YAHOO_PAGER_PORT); + int stringslen = 0; yd->url_datas = g_slist_remove(yd->url_datas, url_data); @@ -3630,8 +3631,6 @@ } if(cs_server) { /* got an address; get on with connecting */ - port = purple_account_get_int(a, "port", YAHOO_PAGER_PORT); - if(purple_proxy_connect(gc, a, cs_server, port, yahoo_got_connected, gc) == NULL) purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to connect")); @@ -3699,7 +3698,7 @@ proxy_ssl ? purple_connection_get_account(gc) : NULL, yd->jp ? YAHOOJP_PAGER_HOST_REQ_URL : YAHOO_PAGER_HOST_REQ_URL, use_whole_url ? TRUE : FALSE, - YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, -1, + YAHOO_CLIENT_USERAGENT, FALSE, NULL, FALSE, -1, yahoo_got_pager_server, yd); if (url_data) yd->url_datas = g_slist_prepend(yd->url_datas, url_data);