Mercurial > pidgin.yaz
changeset 24099:a1a88c1bd59e
don't crash if we get a NLN command from someone not on the blist
Fixes #7128
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sat, 20 Sep 2008 03:53:16 +0000 |
parents | dc8fac020fad |
children | 7e85c6cbf7b0 f68accaa3fea |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Sat Sep 20 02:45:13 2008 +0000 +++ b/libpurple/protocols/msn/notification.c Sat Sep 20 03:53:16 2008 +0000 @@ -1132,6 +1132,7 @@ friendly = purple_url_decode(cmd->params[3]); user = msn_userlist_find_user(session->userlist, passport); + if (user == NULL) return; old_friendly = msn_user_get_friendly_name(user); if (!old_friendly || (old_friendly && (!friendly || strcmp(old_friendly, friendly))))