aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/msn/soap.c10
1 files changed, 10 insertions, 0 deletions
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;