# HG changeset patch # User Daniel Atallah # Date 1213405769 0 # Node ID 576528012cce4329df3b43667d366fd23dc1f76e # Parent 30b5f145a0f74d6451340f99ee500b327278d194 Don't impose a restriction on who you can send files to for XMPP. This allows file transfers to arbitrary chat users (if you know their JID and they know yours). File transfers in chats where you don't know the real JID will fail because the SOCKS5 DST.ADDR hash will not match on both clients (I can't see a way around this issue right now). diff -r 30b5f145a0f7 -r 576528012cce libpurple/protocols/jabber/si.c --- a/libpurple/protocols/jabber/si.c Sat Jun 14 00:59:35 2008 +0000 +++ b/libpurple/protocols/jabber/si.c Sat Jun 14 01:09:29 2008 +0000 @@ -806,7 +806,7 @@ g_snprintf(port, sizeof(port), "%hu", portnum); - purple_debug_info("jabber", "jabber_si_xfer_bytestreams_listen_cb() will be looking at jsx %p: jsx->streamhosts %p and ft_proxy_list[%i] %p", + purple_debug_info("jabber", "jabber_si_xfer_bytestreams_listen_cb() will be looking at jsx %p: jsx->streamhosts %p and ft_proxy_list[%i] %p\n", jsx, jsx->streamhosts, i, ft_proxy_list[i]); if(g_list_find_custom(jsx->streamhosts, ft_proxy_list[i], jabber_si_compare_jid) != NULL) continue; @@ -1213,9 +1213,6 @@ js = gc->proto_data; - if(!purple_find_buddy(gc->account, who) || !jabber_buddy_find(js, who, FALSE)) - return; - xfer = jabber_si_new_xfer(gc, who); if (file)