diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-20 20:30:12 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-20 20:30:12 +0100 |
commit | 801b90b3e76f6eed7027f46a7d11e3d3fe0e04e9 (patch) | |
tree | e917dea04c99d3ad5eeb0ce8ed22844a8a449e97 | |
parent | f2520b5ad5a82d9bf08a550fb0e49913f57d4685 (diff) |
Check if a connection is down before handling its SOAP responses.
-rw-r--r-- | protocols/msn/soap.c | 10 |
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; |