Module: kamailio
Branch: master
Commit: 5394519800abb8e6ad205f614fa11fb4a3986fe9
URL:
https://github.com/kamailio/kamailio/commit/5394519800abb8e6ad205f614fa11fb…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2024-11-21T09:08:41+01:00
ims_ipsec_pcscf: add fixup_free* to exported functions
---
Modified: src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5394519800abb8e6ad205f614fa11fb…
Patch:
https://github.com/kamailio/kamailio/commit/5394519800abb8e6ad205f614fa11fb…
---
diff --git a/src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c
b/src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c
index b1e9fbe93a7..0c1097d55b3 100644
--- a/src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c
+++ b/src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c
@@ -68,7 +68,7 @@ static int domain_fixup(void **param, int param_no);
static int save_fixup2(void **param, int param_no);
static int free_uint_fixup(void **param, int param_no);
static int unregister_fixup(void **param, int param_no);
-static int unregister2_fixup(void **param, int param_no);
+static int unregister_fixup_free(void **param, int param_no);
extern int bind_ipsec_pcscf(usrloc_api_t *api);
@@ -91,9 +91,9 @@ static cmd_export_t cmds[] = {
{"ipsec_destroy", (cmd_function)w_destroy, 1, save_fixup2,
0, REQUEST_ROUTE | ONREPLY_ROUTE },
{"ipsec_destroy", (cmd_function)w_destroy, 2, unregister_fixup,
- 0, ANY_ROUTE },
- {"ipsec_destroy_by_contact", (cmd_function)w_destroy_by_contact, 4,
- unregister2_fixup, 0, ANY_ROUTE},
+ unregister_fixup_free, ANY_ROUTE },
+ {"ipsec_destroy_by_contact", (cmd_function)w_destroy_by_contact, 4,
unregister_fixup,
+ unregister_fixup_free, ANY_ROUTE},
{"bind_ims_ipsec_pcscf", (cmd_function)bind_ipsec_pcscf, 1, 0,
0, 0},
{0, 0, 0, 0, 0, 0}
@@ -495,15 +495,14 @@ static int unregister_fixup(void **param, int param_no)
} else {
return fixup_spve_all(param, param_no);
}
- return E_CFG;
}
-static int unregister2_fixup(void **param, int param_no)
+static int unregister_fixup_free(void **param, int param_no)
{
if(param_no == 1) {
- return domain_fixup(param, param_no);
+ return 0;
} else {
- return fixup_spve_all(param, param_no);
+ return fixup_free_spve_all(param, param_no);
}
}