Browse code

core: fix ksr_version_control() for FreeBSD build

(cherry picked from commit a8769af4c3a497d0f6a81cff17861e566ffa87bc)

drTr0jan authored on 12/07/2022 12:12:00 • Daniel-Constantin Mierla committed on 16/08/2022 10:00:15
Showing 1 changed files
... ...
@@ -347,6 +347,9 @@ int ksr_version_control(void *handle, char *path)
347 347
 	char **m_flags;
348 348
 	char* error;
349 349
 
350
+#ifdef __FreeBSD__
351
+    (void) dlerror();
352
+#endif
350 353
 	m_ver=(char **)dlsym(handle, "module_version");
351 354
 	if ((error=(char *)dlerror())!=0) {
352 355
 		LM_ERR("no version info in module <%s>: %s\n", path, error);