Module: sip-router
Branch: tmp/dlgnewref
Commit: 017ea5779710223df8f5a28829f77eff8395affc
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=017ea5779710223df8f5a28829f77eff8395affc

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Sat Nov 26 00:32:23 2011 +0100

dialog(k): safety check for lookup in dialog table at shutdown

---

 modules_k/dialog/dlg_hash.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules_k/dialog/dlg_hash.c b/modules_k/dialog/dlg_hash.c
index 8ebbd0b..2c91cfe 100644
--- a/modules_k/dialog/dlg_hash.c
+++ b/modules_k/dialog/dlg_hash.c
@@ -439,6 +439,9 @@ dlg_cell_t *dlg_lookup( unsigned int h_entry, unsigned int 
h_id)
        dlg_cell_t *dlg;
        dlg_entry_t *d_entry;
 
+       if(d_table==NULL)
+               return 0;
+
        if (h_entry>=d_table->size)
                goto not_found;
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to