[sr-dev] git:master: modules/ims_usrloc_scscf: fixed poor pointer management in linked list looping

Jason Penton jason.penton at gmail.com
Wed Oct 29 16:07:20 CET 2014


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

Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at gmail.com>
Date:   Wed Oct 29 17:06:30 2014 +0200

modules/ims_usrloc_scscf: fixed poor pointer management in linked list looping

---

 modules/ims_usrloc_scscf/udomain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/ims_usrloc_scscf/udomain.c b/modules/ims_usrloc_scscf/udomain.c
index 55df735..bb42cf6 100644
--- a/modules/ims_usrloc_scscf/udomain.c
+++ b/modules/ims_usrloc_scscf/udomain.c
@@ -339,9 +339,9 @@ void mem_timer_udomain(udomain_t* _d) {
 #ifdef EXTRA_DEBUG
 	    LM_DBG("ULSLOT %d LOCKED\n", i);
 #endif
-	    timer_impurecord(ptr);
 	    t = ptr;
 	    ptr = ptr->next;
+	    timer_impurecord(t);
 
 	    			if (t->reg_state == IMPU_NOT_REGISTERED && t->shead == 0) {
 	    				//remove it - housekeeping - not sure why its still here...?




More information about the sr-dev mailing list