Module: sip-router
Branch: 3.2
Commit: 271a02a29975611cb6de9c82b185dd37932a462e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=271a02a…
Author: Timo Reimann <sr(a)foo-lounge.de>
Committer: Timo Reimann <sr(a)foo-lounge.de>
Date: Fri Nov 4 23:09:02 2011 +0100
dialog(k): When restoring dialog variables from database, stop iterating
through given dialog hash table bucket once matching dialog is found.
- Fixes FS #171.
- Credits to Daniel-Constantin Mierla.
(cherry picked from commit 34fc972291e965a40086b59f077a4b34fba2d12d)
---
modules_k/dialog/dlg_db_handler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dlg_db_handler.c b/modules_k/dialog/dlg_db_handler.c
index c0b8fbc..a9b38ef 100644
--- a/modules_k/dialog/dlg_db_handler.c
+++ b/modules_k/dialog/dlg_db_handler.c
@@ -527,7 +527,7 @@ static int load_dialog_vars_from_db(int fetch_num_rows)
while (dlg) {
if (dlg->h_id == VAL_INT(values+1)) {
set_dlg_variable_unsafe(dlg, &VAL_STR(values+2), &VAL_STR(values+3));
- continue;
+ break;
}
dlg = dlg->next;
if (!dlg) {