From 801b90b3e76f6eed7027f46a7d11e3d3fe0e04e9 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 20 Aug 2010 20:30:12 +0100 Subject: Check if a connection is down before handling its SOAP responses. --- protocols/msn/soap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols') diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c index 6665eef1..e67da2a1 100644 --- a/protocols/msn/soap.c +++ b/protocols/msn/soap.c @@ -123,6 +123,16 @@ static void msn_soap_handle_response( struct http_request *http_req ) struct msn_soap_req_data *soap_req = http_req->data; int st; + if( g_slist_find( msn_connections, soap_req->ic ) == NULL ) + { + soap_req->free_data( soap_req ); + g_free( soap_req->url ); + g_free( soap_req->action ); + g_free( soap_req->payload ); + g_free( soap_req ); + return; + } + if( http_req->body_size > 0 ) { struct xt_parser *parser; -- cgit v1.2.3