comparison 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
comparison
equal deleted inserted replaced
20850:1c611d0df04f 20851:4888d00c50f0
1912 } else { 1912 } else {
1913 js->gc->wants_to_die = TRUE; 1913 js->gc->wants_to_die = TRUE;
1914 text = _("Authentication Failure"); 1914 text = _("Authentication Failure");
1915 } 1915 }
1916 } else if(!strcmp(packet->name, "stream:error") || 1916 } else if(!strcmp(packet->name, "stream:error") ||
1917 (!strcmp(packet->name, "error") && 1917 (!strcmp(packet->name, "error") && xmlns &&
1918 !strcmp(xmlns, "http://etherx.jabber.org/streams"))) { 1918 !strcmp(xmlns, "http://etherx.jabber.org/streams"))) {
1919 if(xmlnode_get_child(packet, "bad-format")) { 1919 if(xmlnode_get_child(packet, "bad-format")) {
1920 text = _("Bad Format"); 1920 text = _("Bad Format");
1921 } else if(xmlnode_get_child(packet, "bad-namespace-prefix")) { 1921 } else if(xmlnode_get_child(packet, "bad-namespace-prefix")) {
1922 text = _("Bad Namespace Prefix"); 1922 text = _("Bad Namespace Prefix");