Changeset 292


Ignore:
Timestamp:
Mar 6, 2006 1:34:34 PM (19 years ago)
Author:
bennylp
Message:

Fixed crashed bug when dialog is gone after it is found! Should not happen in real world I suppose, but...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c

    r253 r292  
    445445            pj_mutex_unlock(tsx->mutex); 
    446446 
    447             return dlg->dlg_set; 
     447            /* Dlg may be NULL on some extreme condition 
     448             * (e.g. during debugging where initially there is a dialog) 
     449             */ 
     450            return dlg ? dlg->dlg_set : NULL; 
    448451 
    449452        } else { 
Note: See TracChangeset for help on using the changeset viewer.