[sr-dev] git:5.6:88560506: core: fix ksr_version_control() for FreeBSD build

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 16 12:01:26 CEST 2022


Module: kamailio
Branch: 5.6
Commit: 88560506e42e0d127c2034b35397b29ee5909307
URL: https://github.com/kamailio/kamailio/commit/88560506e42e0d127c2034b35397b29ee5909307

Author: drTr0jan <drtr0jan at yandex.ru>
Committer: Daniel-Constantin Mierla <miconda at 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/88560506e42e0d127c2034b35397b29ee5909307.diff
Patch: https://github.com/kamailio/kamailio/commit/88560506e42e0d127c2034b35397b29ee5909307.patch

---

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);




More information about the sr-dev mailing list