Browse Source

tm: t_reply() first param. can be any var. type

Switched first param. fixup to fixup_var_int_12(), thus allowing
 it to be a pvar.
Andrei Pelinescu-Onciul 16 years ago
parent
commit
ed6838004e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      modules/tm/tm.c

+ 1 - 5
modules/tm/tm.c

@@ -508,12 +508,8 @@ static int fixup_routes(char* r_type, struct route_list* rt, void** param)
 
 static int fixup_t_reply(void** param, int param_no)
 {
-	int ret;
-
 	if (param_no == 1) {
-		ret = fix_param(FPARAM_AVP, param);
-		if (ret <= 0) return ret;
-	    if (fix_param(FPARAM_INT, param) != 0) return -1;
+		if (fixup_var_int_12(param, 1) != 0) return -1;
 	} else if (param_no == 2) {
 	        return fixup_var_str_12(param, 2);
 	}