Browse code

core: fix ksr_version_control() for FreeBSD build

(cherry picked from commit a8769af4c3a497d0f6a81cff17861e566ffa87bc)
(cherry picked from commit 88560506e42e0d127c2034b35397b29ee5909307)
(cherry picked from commit 2a02935045fadc2a363f1b8efb7c6c021de44cb8)

drTr0jan authored on 12/07/2022 12:12:00 • Daniel-Constantin Mierla committed on 15/09/2022 11:29:57
Showing 1 changed files
... ...
@@ -340,6 +340,9 @@ static inline int version_control(void *handle, char *path)
340 340
 	char **m_flags;
341 341
 	char* error;
342 342
 
343
+#ifdef __FreeBSD__
344
+    (void) dlerror();
345
+#endif
343 346
 	m_ver=(char **)dlsym(handle, "module_version");
344 347
 	if ((error=(char *)dlerror())!=0) {
345 348
 		LM_ERR("no version info in module <%s>: %s\n", path, error);