[sr-dev] git:master: dialog(k): safety check for lookup in dialog table at shutdown
Daniel-Constantin Mierla
miconda at gmail.com
Wed Nov 30 19:01:22 CET 2011
Module: sip-router
Branch: master
Commit: b018f09abbecc6b057c6f9446406c6f20f43a235
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b018f09abbecc6b057c6f9446406c6f20f43a235
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Sat Nov 26 00:32:23 2011 +0100
dialog(k): safety check for lookup in dialog table at shutdown
(cherry picked from commit 017ea5779710223df8f5a28829f77eff8395affc)
---
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 296efdd..2dbf9a0 100644
--- a/modules_k/dialog/dlg_hash.c
+++ b/modules_k/dialog/dlg_hash.c
@@ -444,6 +444,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;
More information about the sr-dev
mailing list