Explorar o código

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

Jason Penton %!s(int64=11) %!d(string=hai) anos
pai
achega
9ba58f876a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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...?