Module: sip-router
Branch: master
Commit: ddcef074088df261ce3fb98adfbb1b76b73c30a6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ddcef07…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 6 15:24:39 2013 +0100
dialog: fixed ka_timer linking
- patch by Rinor Hoxha
---
modules_k/dialog/dlg_hash.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/dialog/dlg_hash.c b/modules_k/dialog/dlg_hash.c
index c9f38bb..3aee269 100644
--- a/modules_k/dialog/dlg_hash.c
+++ b/modules_k/dialog/dlg_hash.c
@@ -189,7 +189,7 @@ int dlg_ka_run(ticks_t ti)
}
if(*dlg_ka_list_head == *dlg_ka_list_tail) {
*dlg_ka_list_head = NULL;
- *dlg_ka_list_head = NULL;
+ *dlg_ka_list_tail = NULL;
}
*dlg_ka_list_head = dka->next;
lock_release(dlg_ka_list_lock);
@@ -213,7 +213,7 @@ int dlg_ka_run(ticks_t ti)
if(*dlg_ka_list_tail!=NULL)
(*dlg_ka_list_tail)->next = dka;
if(*dlg_ka_list_head==NULL)
- *dlg_ka_list_tail = dka;
+ *dlg_ka_list_head = dka;
*dlg_ka_list_tail = dka;
lock_release(dlg_ka_list_lock);
}