Browse Source

json: fixed parameter number for free fixup function

(cherry picked from commit a1b6093aaee9e96f00475752273c9c925ba390d3)
(cherry picked from commit ad5972f97df4a13a1044dc13e9570c1dd216d30f)
Luis Azedo 11 năm trước cách đây
mục cha
commit
e22c6e5c61
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/json/json_mod.c

+ 1 - 1
modules/json/json_mod.c

@@ -88,7 +88,7 @@ static int fixup_get_field_free(void** param, int param_no)
 	}
 
 	if (param_no == 3) {
-		return fixup_free_pvar_null(param, 3);
+		return fixup_free_pvar_null(param, 1);
 	}
 
 	LM_ERR("invalid parameter number <%d>\n", param_no);