浏览代码

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

Jason Penton 11 年之前
父节点
当前提交
9ba58f876a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/ims_usrloc_scscf/udomain.c

+ 1 - 1
modules/ims_usrloc_scscf/udomain.c

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