changeset 9858:d0c196ebe176

[gaim-migrate @ 10737] (21:32:44) shx: fix for a crash that happens when someone request an msnobject of something we don't have committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 25 Aug 2004 01:31:45 +0000
parents d326dd512662
children 42f6b69c9d8e
files src/protocols/msn/slp.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/slp.c	Wed Aug 25 01:30:25 2004 +0000
+++ b/src/protocols/msn/slp.c	Wed Aug 25 01:31:45 2004 +0000
@@ -277,6 +277,13 @@
 
 		file_name = msn_object_get_real_location(obj);
 
+		if (file_name == NULL)
+		{
+			gaim_debug_error("msn", "Wrong object.\n");
+			msn_object_destroy(obj);
+			g_return_if_reached();
+		}
+
 		slpsession = msn_slplink_find_slp_session(slplink,
 												   slpcall->session_id);