浏览代码

core: fix mod_register & dlflags

dlflags changes in mod_register() functions were discarded
resulting in modules failing to load.
Andrei Pelinescu-Onciul 15 年之前
父节点
当前提交
931bd29d50
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 		}