summaryrefslogtreecommitdiff
path: root/www/janus/files/patch-src__janus.c
blob: 5fef7b777a47262bfd8acabffd73fb6a1e63e7d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/janus.c.orig	2022-03-03 10:44:38 UTC
+++ src/janus.c
@@ -4435,6 +4435,7 @@ gint main(int argc, char *argv[])
 				if (exit_on_dl_error)
 					exit(1);
 			} else {
+				dlerror();
 				create_l *create = (create_l*) dlsym(event, "create");
 				const char *dlsym_error = dlerror();
 				if (dlsym_error) {
@@ -5459,6 +5460,7 @@ gint main(int argc, char *argv[])
 			if (exit_on_dl_error)
 				exit(1);
 		} else {
+			dlerror();
 			create_p *create = (create_p*) dlsym(plugin, "create");
 			const char *dlsym_error = dlerror();
 			if (dlsym_error) {