Module: sip-router Branch: master Commit: 34fc972291e965a40086b59f077a4b34fba2d12d URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=34fc9722...
Author: Timo Reimann sr@foo-lounge.de Committer: Timo Reimann sr@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.
---
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) {