Skip to content

Commit

Permalink
modules/ims_qos: correct analysis of return value for t_suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Nov 30, 2015
1 parent 58e5709 commit 6449166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/ims_qos/mod.c
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions modules/ims_registrar_scscf/save.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6449166

Please sign in to comment.