Module: kamailio
Branch: master
Commit: 02b97a728cee7c3184314cbf37e2d9c4f7bcf9c2
URL:
https://github.com/kamailio/kamailio/commit/02b97a728cee7c3184314cbf37e2d9c…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-11-30T21:05:03+02:00
modules/ims_icscf: correct analysis of return value for t_suspend
---
Modified: modules/ims_icscf/location.c
Modified: modules/ims_icscf/registration.c
---
Diff:
https://github.com/kamailio/kamailio/commit/02b97a728cee7c3184314cbf37e2d9c…
Patch:
https://github.com/kamailio/kamailio/commit/02b97a728cee7c3184314cbf37e2d9c…
---
diff --git a/modules/ims_icscf/location.c b/modules/ims_icscf/location.c
index 5b1f80b..022803a 100644
--- a/modules/ims_icscf/location.c
+++ b/modules/ims_icscf/location.c
@@ -143,7 +143,7 @@ int I_perform_location_information_request(struct sip_msg* msg, char*
route, cha
create_lia_return_code(CSCF_RETURN_ERROR);
LM_DBG("Suspending SIP TM transaction\n");
- if (tmb.t_suspend(msg, &saved_t->tindex, &saved_t->tlabel) < 0) {
+ if (tmb.t_suspend(msg, &saved_t->tindex, &saved_t->tlabel) != 0) {
LM_ERR("failed to suspend the TM processing\n");
free_saved_lir_transaction_data(saved_t);
diff --git a/modules/ims_icscf/registration.c b/modules/ims_icscf/registration.c
index b9d1df5..902b77f 100644
--- a/modules/ims_icscf/registration.c
+++ b/modules/ims_icscf/registration.c
@@ -201,7 +201,7 @@ int I_perform_user_authorization_request(struct sip_msg* msg, char*
route, char*
create_uaa_return_code(CSCF_RETURN_ERROR);
LM_DBG("Suspending SIP TM transaction\n");
- if (tmb.t_suspend(msg, &saved_t->tindex, &saved_t->tlabel) < 0) {
+ if (tmb.t_suspend(msg, &saved_t->tindex, &saved_t->tlabel) != 0) {
LM_ERR("failed to suspend the TM processing\n");
free_saved_uar_transaction_data(saved_t);