im.pidgin.pidgin: 9207c76719cf14838d6306432140b3f0da9225ae

datallah at pidgin.im datallah at pidgin.im
Tue Oct 9 19:51:24 EDT 2007


-----------------------------------------------------------------
Revision: 9207c76719cf14838d6306432140b3f0da9225ae
Ancestor: 16d908d77101c3eb83632a6b9febef6d5ee96481
Author: datallah at pidgin.im
Date: 2007-10-09T22:46:02
Branch: im.pidgin.pidgin

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

ChangeLog: 

Make sure that the xmlns isn't null before dereferencing it to fix CID 320.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c	4e51e9d6769210016e9490d044b6730b47bad7f4
+++ libpurple/protocols/jabber/jabber.c	e39ce8a439b5cd10ccdb7bf35ad08122c9c7a4ad
@@ -1914,7 +1914,7 @@ char *jabber_parse_error(JabberStream *j
 			text = _("Authentication Failure");
 		}
 	} else if(!strcmp(packet->name, "stream:error") ||
-			 (!strcmp(packet->name, "error") &&
+			 (!strcmp(packet->name, "error") && xmlns &&
 				!strcmp(xmlns, "http://etherx.jabber.org/streams"))) {
 		if(xmlnode_get_child(packet, "bad-format")) {
 			text = _("Bad Format");


More information about the Commits mailing list