Browse Source

core: fix mod_register & dlflags

dlflags changes in mod_register() functions were discarded
resulting in modules failing to load.
Andrei Pelinescu-Onciul 15 years ago
parent
commit
931bd29d50
1 changed files with 1 additions and 1 deletions
  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;
 		}