Changeset 3813


Ignore:
Timestamp:
Oct 11, 2011 7:26:16 AM (8 years ago)
Author:
nanang
Message:

Fixed #1386: fixed send_raw_resolver_callback() in sip_util.c, should increment tdata ref count before calling pjsip_tpmgr_send_raw() to avoid tdata gets destroyed prematurely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsip/sip_util.c

    r3553 r3813  
    13901390 
    13911391        pj_assert(addr->count != 0); 
     1392 
     1393        /* Avoid tdata destroyed by pjsip_tpmgr_send_raw(). */ 
     1394        pjsip_tx_data_add_ref(sraw_data->tdata); 
    13921395 
    13931396        data_len = sraw_data->tdata->buf.cur - sraw_data->tdata->buf.start; 
Note: See TracChangeset for help on using the changeset viewer.