pidgin: 6447eb03: Fix a crash when content modify contains...
maiku at pidgin.im
maiku at pidgin.im
Wed Sep 23 06:05:38 EDT 2009
-----------------------------------------------------------------
Revision: 6447eb03b5b0d21ec2d313005e95d66b4376eeae
Ancestor: 29f6b9d81574bfa9235dbd438a8934f06552e368
Author: maiku at pidgin.im
Date: 2009-09-23T10:00:56
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6447eb03b5b0d21ec2d313005e95d66b4376eeae
Modified files:
libpurple/protocols/jabber/jingle/jingle.c
ChangeLog:
Fix a crash when content modify contains unknown content.
Thanks to Sjoerd Simons for helping find and test this.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/jingle.c 397971687e5784f99459ff5b340dead50b110e83
+++ libpurple/protocols/jabber/jingle/jingle.c cce76f266446737527e2af2737cec7bf2b494c9a
@@ -115,7 +115,7 @@ jingle_handle_content_modify(JingleSessi
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))
More information about the Commits
mailing list