소스 검색

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
 	    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...?