Mercurial > pidgin
diff src/protocols/bonjour/bonjour.c @ 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 | 0d9c6d2ad64b |
children | 59494e5f7fdf |
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); }