Mercurial > pidgin
changeset 11966:bf4fe41d5e94
[gaim-migrate @ 14258]
Don't crash when closing an IM window with a screen name that isn't
a real bonjour user
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 04 Nov 2005 04:57:43 +0000 |
parents | bcdc6eba1700 |
children | 225e1b274033 |
files | src/protocols/bonjour/bonjour.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/bonjour/bonjour.c Fri Nov 04 03:14:49 2005 +0000 +++ b/src/protocols/bonjour/bonjour.c Fri Nov 04 04:57:43 2005 +0000 @@ -254,6 +254,13 @@ { GaimBuddy *buddy = gaim_find_buddy(connection->account, who); + if (buddy == NULL) + /* + * This buddy is not in our buddy list, and therefore does not really + * exist, so we won't have any data about them. + */ + return; + bonjour_jabber_close_conversation(((BonjourData*)(connection->proto_data))->jabber_data, buddy); }