Changeset 4970


Ignore:
Timestamp:
Dec 23, 2014 3:56:28 AM (10 years ago)
Author:
ming
Message:

Fixed #1808: Crash in pjsip_inv_terminate() (thanks to Brian Walker for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r4926 r4970  
    15801580    /* Forcefully terminate the session if state is not DISCONNECTED */ 
    15811581    if (inv->state != PJSIP_INV_STATE_DISCONNECTED) { 
    1582         inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, NULL); 
     1582        pjsip_event usr_event; 
     1583 
     1584        PJSIP_EVENT_INIT_USER(usr_event, NULL, NULL, NULL, NULL); 
     1585        inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, &usr_event); 
    15831586    } 
    15841587 
Note: See TracChangeset for help on using the changeset viewer.