Browse Source

tmx: check if t is null or undefined for returning branch index

Daniel-Constantin Mierla 11 years ago
parent
commit
37b0bea4ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/tmx/t_var.c

+ 1 - 1
modules/tmx/t_var.c

@@ -397,7 +397,7 @@ int pv_get_tm_branch_idx(struct sip_msg *msg, pv_param_t *param,
 		case FAILURE_ROUTE:
 			/* first get the transaction */
 			t = _tmx_tmb.t_gett();
-			if ( t == NULL && t == T_UNDEFINED ) {
+			if ( t == NULL || t == T_UNDEFINED ) {
 				return -1;
 			}
 			/* add the currently added branches to the number of