Fix a crash when content modify contains unknown content.

Wed, 23 Sep 2009 10:00:56 +0000

author
Michael Ruprecht <maiku@pidgin.im>
date
Wed, 23 Sep 2009 10:00:56 +0000
changeset 28571
3edd01e53823
parent 28561
a2dd00ce03eb
child 28579
28cef7bf2835

Fix a crash when content modify contains unknown content.
Thanks to Sjoerd Simons for helping find and test this.

libpurple/protocols/jabber/jingle/jingle.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/jingle/jingle.c	Sun Sep 20 10:57:21 2009 +0000
+++ b/libpurple/protocols/jabber/jingle/jingle.c	Wed Sep 23 10:00:56 2009 +0000
@@ -115,7 +115,7 @@
 		const gchar *creator = xmlnode_get_attrib(content, "creator");
 		JingleContent *local_content = jingle_session_find_content(session, name, creator);
 
-		if (content != NULL) {
+		if (local_content != NULL) {
 			const gchar *senders = xmlnode_get_attrib(content, "senders");
 			gchar *local_senders = jingle_content_get_senders(local_content);
 			if (strcmp(senders, local_senders))

mercurial