changeset 24611:39289fd7e67f

fixes a crash, I think I've seen this before somewhere else
author Ka-Hing Cheung <khc@hxbc.us>
date Mon, 15 Dec 2008 00:08:45 +0000
parents 9ffd54bf622a
children fbb239fc7396
files libpurple/protocols/msn/soap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c	Sun Dec 07 02:12:00 2008 +0000
+++ b/libpurple/protocols/msn/soap.c	Mon Dec 15 00:08:45 2008 +0000
@@ -505,7 +505,7 @@
 		purple_debug_info("soap", "read: %s\n", g_strerror(perrno));
 
 #ifndef MSN_UNSAFE_DEBUG
-	if (conn->current_request->secure)
+	if (conn->current_request && conn->current_request->secure)
 		purple_debug_misc("soap", "Received secure request.\n");
 	else
 #endif