cpw.malu.xmpp.jingle_ft: 5fd23174: Fix inserting streamhost-error element f...

malu at pidgin.im malu at pidgin.im
Thu May 7 06:20:38 EDT 2009


-----------------------------------------------------------------
Revision: 5fd231746d8c372a4c5b502400a2d4c1db675df1
Ancestor: 7d278213089d7bd61b8639bd2947b9d2820b048e
Author: malu at pidgin.im
Date: 2009-05-07T10:16:44
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/5fd231746d8c372a4c5b502400a2d4c1db675df1

Modified files:
        libpurple/protocols/jabber/jingle/s5b.c

ChangeLog: 

Fix inserting streamhost-error element for transport-info on failed s5b
connection.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/s5b.c	797456202eed8accdf2772fcb5adbc83cae955df
+++ libpurple/protocols/jabber/jingle/s5b.c	8fcc2c234d47cf0aa75ab70c8c685de27742d364
@@ -1194,8 +1194,10 @@ jingle_s5b_attempt_connect_internal(gpoi
 		/* send streamhost error */
 		JabberIq *streamhost_error =
 			jingle_session_to_packet(session, JINGLE_TRANSPORT_INFO);
+		xmlnode *jingle = 
+		  xmlnode_get_child(streamhost_error->node, "jingle");
 		xmlnode *content = 
-			xmlnode_get_child(streamhost_error->node, "content");
+			xmlnode_get_child(jingle, "content");
 		xmlnode *transport = xmlnode_get_child(content, "transport");
 
 		xmlnode_insert_child(transport, xmlnode_new("streamhost-error"));


More information about the Commits mailing list