# HG changeset patch # User Daniel Atallah # Date 1233591191 0 # Node ID 651cdeab9b9910690f5e38bb06cc9946aa2e1bf9 # Parent e6683ec9d3105bec4c150ece00770454e8fec030 conn->current_request can be NULL here. diff -r e6683ec9d310 -r 651cdeab9b99 libpurple/protocols/msn/soap.c --- a/libpurple/protocols/msn/soap.c Sun Feb 01 09:14:24 2009 +0000 +++ b/libpurple/protocols/msn/soap.c Mon Feb 02 16:13:11 2009 +0000 @@ -342,12 +342,14 @@ } if (fault || body) { - MsnSoapRequest *request = conn->current_request; - conn->current_request = NULL; - request->cb(request->message, response, - request->cb_data); + if (conn->current_request) { + MsnSoapRequest *request = conn->current_request; + conn->current_request = NULL; + request->cb(request->message, response, + request->cb_data); + msn_soap_request_destroy(request, FALSE); + } msn_soap_message_destroy(response); - msn_soap_request_destroy(request, FALSE); } return TRUE;