Module: kamailio
Branch: master
Commit: 5e6cec1d01e676d78c4a21e48de3e0908e39de8f
URL:
https://github.com/kamailio/kamailio/commit/5e6cec1d01e676d78c4a21e48de3e09…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2015-11-11T22:46:30+02:00
modules/ims_charging: fixes always true comparison of unsigned int
---
Modified: modules/ims_charging/ro_timer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5e6cec1d01e676d78c4a21e48de3e09…
Patch:
https://github.com/kamailio/kamailio/commit/5e6cec1d01e676d78c4a21e48de3e09…
---
diff --git a/modules/ims_charging/ro_timer.c b/modules/ims_charging/ro_timer.c
index df1fc59..f5978d6 100644
--- a/modules/ims_charging/ro_timer.c
+++ b/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",