diff libpurple/protocols/jabber/jabber.c @ 20851:4888d00c50f0

Make sure that the xmlns isn't null before dereferencing it to fix CID 320.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 09 Oct 2007 22:46:02 +0000
parents 15f61e6b15cd
children 6cc03752fe59
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Tue Oct 09 22:42:49 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Tue Oct 09 22:46:02 2007 +0000
@@ -1914,7 +1914,7 @@
 			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");