Changeset 4804


Ignore:
Timestamp:
Mar 26, 2014 6:31:25 AM (5 years ago)
Author:
nanang
Message:

Fix #1753: Fixed crash in pjsua2 when receiving unsolicited MWI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r4776 r4804  
    798798{ 
    799799    OnMwiInfoParam prm; 
    800     prm.state   = pjsip_evsub_get_state(mwi_info->evsub); 
     800 
     801    if (mwi_info->evsub) { 
     802        prm.state       = pjsip_evsub_get_state(mwi_info->evsub); 
     803    } else { 
     804        /* Unsolicited MWI */ 
     805        prm.state       = PJSIP_EVSUB_STATE_NULL; 
     806    } 
    801807    prm.rdata.fromPj(*mwi_info->rdata); 
    802808 
Note: See TracChangeset for help on using the changeset viewer.