Changeset 52f5e90 for protocols


Ignore:
Timestamp:
2010-10-02T04:21:50Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ed86165
Parents:
2c6b0f4
Message:

Fixed possible crash bug on removing contacts while the auth cookie expired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    r2c6b0f4 r52f5e90  
    970970{
    971971        struct msn_data *md = soap_req->ic->proto_data;
    972         bee_user_t *bu = soap_req->data;
    973         struct msn_buddy_data *bd = bu->data;
     972        const char *cid = soap_req->data;
    974973       
    975974        soap_req->url = g_strdup( SOAP_ADDRESSBOOK_URL );
    976975        soap_req->action = g_strdup( SOAP_AB_CONTACT_DEL_ACTION );
    977976        soap_req->payload = msn_soap_abservice_build( SOAP_AB_CONTACT_DEL_PAYLOAD,
    978                 "Timer", md->tokens[1], bd->cid );
     977                "Timer", md->tokens[1], cid );
    979978       
    980979        return 1;
     
    989988static int msn_soap_ab_contact_del_free_data( struct msn_soap_req_data *soap_req )
    990989{
     990        g_free( soap_req->data );
    991991        return 0;
    992992}
     
    994994int msn_soap_ab_contact_del( struct im_connection *ic, bee_user_t *bu )
    995995{
    996         return msn_soap_start( ic, bu,
     996        struct msn_buddy_data *bd = bu->data;
     997       
     998        return msn_soap_start( ic, g_strdup( bd->cid ),
    997999                               msn_soap_ab_contact_del_build_request,
    9981000                               NULL,
Note: See TracChangeset for help on using the changeset viewer.