Module: kamailio
Branch: master
Commit: 1241c77c8ced81bfc2f1a8d72b99d4157d5a61b5
URL:
https://github.com/kamailio/kamailio/commit/1241c77c8ced81bfc2f1a8d72b99d41…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T09:45:05+01:00
siprepo: add fixup_free* to exported functions
---
Modified: src/modules/siprepo/siprepo_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1241c77c8ced81bfc2f1a8d72b99d41…
Patch:
https://github.com/kamailio/kamailio/commit/1241c77c8ced81bfc2f1a8d72b99d41…
---
diff --git a/src/modules/siprepo/siprepo_mod.c b/src/modules/siprepo/siprepo_mod.c
index e6acc23368e..e8cd28d10d7 100644
--- a/src/modules/siprepo/siprepo_mod.c
+++ b/src/modules/siprepo/siprepo_mod.c
@@ -59,6 +59,7 @@ static int w_sr_msg_check(sip_msg_t *msg, char *p1, char *p2);
static void siprepo_timer_exec(unsigned int ticks, int worker, void *param);
static int fixup_sr_msg_async_pull(void **param, int param_no);
+static int fixup_free_sr_msg_async_pull(void **param, int param_no);
/* clang-format off */
typedef struct sworker_task_param {
@@ -293,6 +294,15 @@ static int fixup_sr_msg_async_pull(void **param, int param_no)
return 0;
}
+static int fixup_free_sr_msg_async_pull(void **param, int param_no)
+{
+ if(param_no >= 1 && param_no <= 4)
+ return fixup_free_spve_null(param, 1);
+ if(param_no == 5)
+ return fixup_free_igp_null(param, 1);
+ return 0;
+}
+
/**
*
*/