summaryrefslogtreecommitdiff
path: root/src/bytestream-factory.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-06 15:43:14 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-06 15:46:33 +0100
commit46aa8f519b90c40f5a1db84125417292b1fd8c23 (patch)
tree07206838f3bba1ba4e6817ed711ea38b8514bee6 /src/bytestream-factory.c
parentb52457c53eea23bb8fd224a04168a67036a05eaf (diff)
downloadtelepathy-gabble-46aa8f519b90c40f5a1db84125417292b1fd8c23.tar.gz
Remove the proxy from the potential proxies list if the result is invalid
Diffstat (limited to 'src/bytestream-factory.c')
-rw-r--r--src/bytestream-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytestream-factory.c b/src/bytestream-factory.c
index 922d5839c..ca25abb93 100644
--- a/src/bytestream-factory.c
+++ b/src/bytestream-factory.c
@@ -332,12 +332,12 @@ socks5_proxy_query_reply_cb (GabbleConnection *conn,
portstr = lm_message_node_get_attribute (streamhost, "port");
if (jid == NULL || host == NULL || portstr == NULL)
- return LM_HANDLER_RESULT_REMOVE_MESSAGE;
+ goto fail;
port = g_ascii_strtoll (portstr, NULL, 10);
if (port <= 0 || port > G_MAXUINT16)
- return LM_HANDLER_RESULT_REMOVE_MESSAGE;
+ goto fail;
proxy = gabble_socks5_proxy_new (jid, host, port);