Module: sip-router
Branch: master
Commit: 8e6c83182677ec234c5f44c5dfcb40e421a21bcb
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8e6c83182677ec234c5f44c5dfcb40e421a21bcb

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Fri Sep 26 09:16:39 2014 +0200

dialog: fixed typo/copy&paste oversight to dlg pointer name in clean routine

- credits to Alex Balshov for report, troubleshooting and spotting the
  fix

---

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

diff --git a/modules/dialog/dlg_hash.c b/modules/dialog/dlg_hash.c
index 937f006..09166b8 100644
--- a/modules/dialog/dlg_hash.c
+++ b/modules/dialog/dlg_hash.c
@@ -250,11 +250,11 @@ int dlg_clean_run(ticks_t ti)
                                destroy_dlg(tdlg);
                        }
                        if(tdlg->state==DLG_STATE_CONFIRMED_NA && 
tdlg->start_ts<tm-60) {
-                               if(update_dlg_timer(&dlg->tl, 10)<0) {
+                               if(update_dlg_timer(&tdlg->tl, 10)<0) {
                                        LM_ERR("failed to update dialog 
lifetime in long non-ack state\n");
                                }
-                               dlg->lifetime = 10;
-                               dlg->dflags |= DLG_FLAG_CHANGED;
+                               tdlg->lifetime = 10;
+                               tdlg->dflags |= DLG_FLAG_CHANGED;
                        }
                }
                lock_set_release(d_table->locks, d_table->entries[i].lock_idx);


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

Reply via email to