aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-11 20:13:19 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-11 20:13:19 +0200
commita87e6ba665985301eedbe981a81110846aad8a9d (patch)
tree382c54b52a49d2a9ff19754a8054d49ff08ad956
parent17a6ee93f4fbefe8b4356d884fdd95f4e72ce8cc (diff)
parent3ab1d317831a6c1830bb648a1a8d63a41c92f651 (diff)
Merging a Jabber ft bugfix.
-rw-r--r--protocols/jabber/s5bytestream.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/jabber/s5bytestream.c b/protocols/jabber/s5bytestream.c
index 4896e380..7d993529 100644
--- a/protocols/jabber/s5bytestream.c
+++ b/protocols/jabber/s5bytestream.c
@@ -481,10 +481,11 @@ gboolean jabber_bs_recv_handshake( gpointer data, gint fd, b_input_condition con
return TRUE;
else if( ret < sizeof( struct socks5_message ) )
{
- /* Either a buggy proxy or just one that doesnt regard the SHOULD in XEP-0065
- * saying the reply SHOULD contain the address */
-
- ASSERTSOCKOP( ret = recv( fd, &socks5_reply, ret, 0 ), "Dequeuing after MSG_PEEK" );
+ /* Either a buggy proxy or just one that doesnt regard
+ * the SHOULD in XEP-0065 saying the reply SHOULD
+ * contain the address. We'll take it, so make sure the
+ * next jabber_bs_peek starts with an empty buffer. */
+ bt->peek_buf_len = 0;
}
if( !( socks5_reply.ver == 5 ) ||