Module: kamailio
Branch: master
Commit: 37aa5b5f885d9c6a4915a3b3283d3cbbc04ecedd
URL:
https://github.com/kamailio/kamailio/commit/37aa5b5f885d9c6a4915a3b3283d3cb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-21T09:07:39+02:00
core: set shm xsetfunc api field
- fix wrong variable added in previous commit for pkg api
---
Modified: src/core/mem/pkg.c
Modified: src/core/mem/shm.c
---
Diff:
https://github.com/kamailio/kamailio/commit/37aa5b5f885d9c6a4915a3b3283d3cb…
Patch:
https://github.com/kamailio/kamailio/commit/37aa5b5f885d9c6a4915a3b3283d3cb…
---
diff --git a/src/core/mem/pkg.c b/src/core/mem/pkg.c
index 6baf6ef6e64..803a68fca68 100644
--- a/src/core/mem/pkg.c
+++ b/src/core/mem/pkg.c
@@ -51,7 +51,7 @@ int pkg_init_api(sr_pkg_api_t *ap)
_pkg_root.xrealloc = ap->xrealloc;
_pkg_root.xreallocxf = ap->xreallocxf;
_pkg_root.xstatus = ap->xstatus;
- _shm_root.xstatus_filter = ap->xstatus_filter;
+ _pkg_root.xstatus_filter = ap->xstatus_filter;
_pkg_root.xinfo = ap->xinfo;
_pkg_root.xreport = ap->xreport;
_pkg_root.xavailable = ap->xavailable;
diff --git a/src/core/mem/shm.c b/src/core/mem/shm.c
index 7a211856ac5..f321fff721c 100644
--- a/src/core/mem/shm.c
+++ b/src/core/mem/shm.c
@@ -252,6 +252,7 @@ int shm_init_api(sr_shm_api_t *ap)
_shm_root.xfmodstats = ap->xfmodstats;
_shm_root.xglock = ap->xglock;
_shm_root.xgunlock = ap->xgunlock;
+ _shm_root.xsetfunc = ap->xsetfunc;
return 0;
}