Procházet zdrojové kódy

core: fix mod_register & dlflags

dlflags changes in mod_register() functions were discarded
resulting in modules failing to load.
Andrei Pelinescu-Onciul před 15 roky
rodič
revize
931bd29d50
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      sr_module.c

+ 1 - 1
sr_module.c

@@ -549,7 +549,7 @@ reload:
 	if (((error =(char*)dlerror())==0) && mr) {
 		/* no error call it */
 		new_dlflags=dlflags;
-		if (mr(path, &dlflags, 0, 0)!=0) {
+		if (mr(path, &new_dlflags, 0, 0)!=0) {
 			LOG(L_ERR, "ERROR: load_module: %s: mod_register failed\n", path);
 			goto error1;
 		}