Module: kamailio
Branch: 5.6
Commit: 88560506e42e0d127c2034b35397b29ee5909307
URL:
https://github.com/kamailio/kamailio/commit/88560506e42e0d127c2034b35397b29…
Author: drTr0jan <drtr0jan(a)yandex.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-16T12:00:15+02:00
core: fix ksr_version_control() for FreeBSD build
(cherry picked from commit a8769af4c3a497d0f6a81cff17861e566ffa87bc)
---
Modified: src/core/sr_module.c
---
Diff:
https://github.com/kamailio/kamailio/commit/88560506e42e0d127c2034b35397b29…
Patch:
https://github.com/kamailio/kamailio/commit/88560506e42e0d127c2034b35397b29…
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index 2d787d7f9f..013598c2a7 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -347,6 +347,9 @@ int ksr_version_control(void *handle, char *path)
char **m_flags;
char* error;
+#ifdef __FreeBSD__
+ (void) dlerror();
+#endif
m_ver=(char **)dlsym(handle, "module_version");
if ((error=(char *)dlerror())!=0) {
LM_ERR("no version info in module <%s>: %s\n", path, error);