Module: kamailio
Branch: master
Commit: 81b0b9b35f639ab13774bdc30ff549a57d3cfbb5
URL:
https://github.com/kamailio/kamailio/commit/81b0b9b35f639ab13774bdc30ff549a…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-20T11:51:51+01:00
xhttp: add fixup_free* to exported functions
---
Modified: src/modules/xhttp/xhttp_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/81b0b9b35f639ab13774bdc30ff549a…
Patch:
https://github.com/kamailio/kamailio/commit/81b0b9b35f639ab13774bdc30ff549a…
---
diff --git a/src/modules/xhttp/xhttp_mod.c b/src/modules/xhttp/xhttp_mod.c
index af27baffa41..9640de136cc 100644
--- a/src/modules/xhttp/xhttp_mod.c
+++ b/src/modules/xhttp/xhttp_mod.c
@@ -55,7 +55,7 @@ static int w_xhttp_send_reply(
static int mod_init(void);
static int fixup_xhttp_reply(void **param, int param_no);
-
+static int fixup_free_xhttp_reply(void **param, int param_no);
static int pv_get_huri(struct sip_msg *msg, pv_param_t *param, pv_value_t *res);
static int xhttp_route_no = DEFAULT_RT;
@@ -94,7 +94,7 @@ static param_export_t params[] = {
static cmd_export_t cmds[] = {
{"xhttp_reply", (cmd_function)w_xhttp_send_reply,
- 4, fixup_xhttp_reply, 0, REQUEST_ROUTE},
+ 4, fixup_xhttp_reply, fixup_free_xhttp_reply, REQUEST_ROUTE},
{"bind_xhttp", (cmd_function)bind_xhttp,
0, 0, 0, ANY_ROUTE},
{0, 0, 0, 0, 0}
@@ -506,6 +506,23 @@ static int fixup_xhttp_reply(void **param, int param_no)
return 0;
}
+/**
+ *
+ */
+static int fixup_free_xhttp_reply(void **param, int param_no)
+{
+ if(param_no == 1) {
+ return fixup_free_igp_null(param, 1);
+ } else if(param_no == 2) {
+ return fixup_free_spve_null(param, 1);
+ } else if(param_no == 3) {
+ return fixup_free_spve_null(param, 1);
+ } else if(param_no == 4) {
+ return fixup_free_spve_null(param, 1);
+ }
+ return 0;
+}
+
/**
*
*/