Przeglądaj źródła

modules/ims_qos: correct analysis of return value for t_suspend

jaybeepee 9 lat temu
rodzic
commit
64491668d6
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      modules/ims_qos/mod.c
  2. 2 2
      modules/ims_registrar_scscf/save.c

+ 1 - 1
modules/ims_qos/mod.c

@@ -1055,7 +1055,7 @@ static int w_rx_aar_register(struct sip_msg *msg, char* route, char* str1, char*
     }
 
     LM_DBG("Suspending SIP TM transaction\n");
-    if (tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel) < 0) {
+    if (tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel) != 0) {
         LM_ERR("failed to suspend the TM processing\n");
         free_saved_transaction_global_data(saved_t_data);
         return CSCF_RETURN_ERROR;

+ 2 - 2
modules/ims_registrar_scscf/save.c

@@ -1128,7 +1128,7 @@ int assign_server_unreg(struct sip_msg* _m, char* str1, str* direction, char* ro
     create_return_code(CSCF_RETURN_ERROR);
 
     LM_DBG("Suspending SIP TM transaction\n");
-    if (tmb.t_suspend(_m, &saved_t->tindex, &saved_t->tlabel) < 0) {
+    if (tmb.t_suspend(_m, &saved_t->tindex, &saved_t->tlabel) != 0) {
         LM_ERR("failed to suspend the TM processing\n");
         free_saved_transaction_data(saved_t);
         rerrno = R_SAR_FAILED;
@@ -1357,7 +1357,7 @@ int save(struct sip_msg* msg, char* str1, char *route) {
     create_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_transaction_data(saved_t);
         rerrno = R_SAR_FAILED;