diff libpurple/protocols/msn/slp.c @ 30055:71c24c85e4af

I think user might be NULL here.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 06 May 2010 05:24:06 +0000
parents b0a7b31dcc5d
children 0b22c840f4f4
line wrap: on
line diff
--- a/libpurple/protocols/msn/slp.c	Wed May 05 09:07:10 2010 +0000
+++ b/libpurple/protocols/msn/slp.c	Thu May 06 05:24:06 2010 +0000
@@ -813,7 +813,7 @@
 
 		user = msn_userlist_find_user(slpcall->slplink->session->userlist,
 		                              slpcall->slplink->remote_user);
-		if (!(user->clientid & 0xF0000000))	{
+		if (!user || !(user->clientid & 0xF0000000))	{
 			/* Just start a normal SB transfer. */
 			msn_slpcall_session_init(slpcall);
 			return;