[sr-dev] git:3.3: dialog: fixed ka_timer linking

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 6 15:32:42 CET 2013


Module: sip-router
Branch: 3.3
Commit: 6dda5c447f656c99cc84956b161cc9c977b06dd3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6dda5c447f656c99cc84956b161cc9c977b06dd3

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Jan  6 15:24:39 2013 +0100

dialog: fixed ka_timer linking

- patch by Rinor Hoxha
(cherry picked from commit ddcef074088df261ce3fb98adfbb1b76b73c30a6)

---

 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 28468b3..d307f9d 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);
 		}




More information about the sr-dev mailing list