changeset 28652:e0a9b3e18c9d

Fix a crash when content modify contains unknown content. Thanks to Sjoerd Simons for helping find and test this.
author maiku@pidgin.im
date Wed, 23 Sep 2009 10:00:56 +0000
parents 5f97830906bc
children 5dad598188ed
files libpurple/protocols/jabber/jingle/jingle.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))