Browse code

core: fix mod_register & dlflags

dlflags changes in mod_register() functions were discarded
resulting in modules failing to load.

Andrei Pelinescu-Onciul authored on 24/08/2010 09:43:36
Showing 1 changed files
... ...
@@ -549,7 +549,7 @@ reload:
549 549
 	if (((error =(char*)dlerror())==0) && mr) {
550 550
 		/* no error call it */
551 551
 		new_dlflags=dlflags;
552
-		if (mr(path, &dlflags, 0, 0)!=0) {
552
+		if (mr(path, &new_dlflags, 0, 0)!=0) {
553 553
 			LOG(L_ERR, "ERROR: load_module: %s: mod_register failed\n", path);
554 554
 			goto error1;
555 555
 		}