浏览代码

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

- credits to Alex Balshov for report, troubleshooting and spotting the
  fix
Daniel-Constantin Mierla 11 年之前
父节点
当前提交
8e6c831826
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      modules/dialog/dlg_hash.c

+ 3 - 3
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);