Mercurial > pidgin
changeset 29870:5286451c3d44
jabber: Avoid an assertion failure for presence from bare domains
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 03 May 2010 05:02:30 +0000 |
parents | 95ab863d580f |
children | ce52e101844a |
files | libpurple/protocols/jabber/presence.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Sun May 02 21:31:23 2010 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon May 03 05:02:30 2010 +0000 @@ -924,8 +924,9 @@ goto out; } - presence.chat = jabber_chat_find(js, presence.jid_from->node, - presence.jid_from->domain); + if (presence.jid_from->node) + presence.chat = jabber_chat_find(js, presence.jid_from->node, + presence.jid_from->domain); if(presence.jb->error_msg) { g_free(presence.jb->error_msg); presence.jb->error_msg = NULL;