소스 검색

modules/ims_charging: fixes always true comparison of unsigned int

Mikko Lehto 10 년 전
부모
커밋
5e6cec1d01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/ims_charging/ro_timer.c

+ 1 - 1
modules/ims_charging/ro_timer.c

@@ -409,7 +409,7 @@ void ro_session_ontimeout(struct ro_tl *tl) {
             counter_add(ims_charging_cnts_h.billed_secs, used_secs);
 
             if (ro_session->callid.s != NULL
-                    && ro_session->dlg_h_entry >= 0
+                    && ro_session->dlg_h_entry > 0
                     && ro_session->dlg_h_id > 0
                     && ro_session->ro_session_id.s != NULL) {
                 LM_DBG("Found a session to re-apply for timing [%.*s] and user is [%.*s]\n",