# HG changeset patch # User Paul Aurich # Date 1250887746 0 # Node ID 3a6b755da6692731caaf9e5558b1368db1f9cfc0 # Parent 10540cd461214954c047ed41ac0a4e21fcd0e28d# Parent ed30bc20442cb46bfca33290b76dfad7388d79c1 merge of '48f2d27edd8466883a732524bff0e292e343e6f5' and 'ae5a2cd1da029523f7d734738a879d06c2178a4b' diff -r 10540cd46121 -r 3a6b755da669 libpurple/protocols/jabber/caps.c --- a/libpurple/protocols/jabber/caps.c Fri Aug 21 15:57:38 2009 +0000 +++ b/libpurple/protocols/jabber/caps.c Fri Aug 21 20:49:06 2009 +0000 @@ -468,8 +468,10 @@ } if (!hash || strcmp(hash, userdata->ver)) { - purple_debug_warning("jabber", "Could not validate caps info from %s\n", - xmlnode_get_attrib(packet, "from")); + purple_debug_warning("jabber", "Could not validate caps info from " + "%s. Expected %s, got %s\n", + xmlnode_get_attrib(packet, "from"), + userdata->ver, hash ? hash : "(null)"); userdata->cb(NULL, NULL, userdata->cb_data); jabber_caps_client_info_destroy(info); diff -r 10540cd46121 -r 3a6b755da669 libpurple/protocols/jabber/google.c --- a/libpurple/protocols/jabber/google.c Fri Aug 21 15:57:38 2009 +0000 +++ b/libpurple/protocols/jabber/google.c Fri Aug 21 20:49:06 2009 +0000 @@ -1316,6 +1316,7 @@ purple_debug_error("jabber", "Google STUN lookup failed: %s\n", error_message); g_slist_free(hosts); + js->stun_query = NULL; return; } @@ -1334,18 +1335,16 @@ port = ntohs(((struct sockaddr_in *) addr)->sin_port); } - if (js) { - if (js->stun_ip) { - g_free(js->stun_ip); - } - js->stun_ip = g_strdup(dst); - purple_debug_info("jabber", "set Google STUN IP address: %s\n", dst); - js->stun_port = port; - purple_debug_info("jabber", "set Google STUN port: %d\n", port); - purple_debug_info("jabber", "set Google STUN port: %d\n", port); - /* unmark ongoing query */ - js->stun_query = NULL; - } + if (js->stun_ip) + g_free(js->stun_ip); + js->stun_ip = g_strdup(dst); + js->stun_port = port; + + purple_debug_info("jabber", "set Google STUN IP/port address: " + "%s:%d\n", dst, port); + + /* unmark ongoing query */ + js->stun_query = NULL; } while (hosts != NULL) {