im.pidgin.pidgin: 8562c41ae7fb8c6038d6ef15783bb38c2a58ee36
datallah at pidgin.im
datallah at pidgin.im
Tue Oct 9 19:51:21 EDT 2007
-----------------------------------------------------------------
Revision: 8562c41ae7fb8c6038d6ef15783bb38c2a58ee36
Ancestor: f4e8d98e8bfb202b0d85a5072a23299161e85c68
Author: datallah at pidgin.im
Date: 2007-10-09T23:45:16
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/msn/oim.c
ChangeLog:
Prevent null pointer deref to fix CID 338
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/oim.c f9e705bd719c70b2aed9fa8f6644f64a1d417874
+++ libpurple/protocols/msn/oim.c 7413546d1cd5e152f445c306b1dbfffb6f6b8858
@@ -608,8 +608,9 @@ msn_parse_oim_msg(MsnOim *oim,const char
purple_debug_info("MSN OIM:OIM", "%s", xmlmsg);
node = xmlnode_from_str(xmlmsg, strlen(xmlmsg));
- if (strcmp(node->name, "MD") != 0) {
- xmlnode_free(node);
+ if (!node || !node->name || strcmp(node->name, "MD") != 0) {
+ if (node)
+ xmlnode_free(node);
return;
}
More information about the Commits
mailing list