diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-06 13:34:34 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-06 13:34:34 +0000 |
commit | d3cc2c0befa4dee3a9b95314203b6c66497d83a0 (patch) | |
tree | 66998469753ca9f527d975770fb63dd3f66c433a /pjsip/src | |
parent | 772fddc6b11e2de5562e425b9cffe82642d2b2db (diff) |
Fixed crashed bug when dialog is gone after it is found! Should not happen in real world I suppose, but...
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@292 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsip/sip_ua_layer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/src/pjsip/sip_ua_layer.c b/pjsip/src/pjsip/sip_ua_layer.c index 9776ce5f..391f2a7b 100644 --- a/pjsip/src/pjsip/sip_ua_layer.c +++ b/pjsip/src/pjsip/sip_ua_layer.c @@ -444,7 +444,10 @@ static struct dlg_set *find_dlg_set_for_msg( pjsip_rx_data *rdata ) dlg = tsx->mod_data[mod_ua.mod.id]; pj_mutex_unlock(tsx->mutex); - return dlg->dlg_set; + /* Dlg may be NULL on some extreme condition + * (e.g. during debugging where initially there is a dialog) + */ + return dlg ? dlg->dlg_set : NULL; } else { return NULL; |