[sr-dev] git:sr_3.0: core: fix mod_register & dlflags
Andrei Pelinescu-Onciul
andrei at iptel.org
Mon Oct 11 11:26:27 CEST 2010
Module: sip-router
Branch: sr_3.0
Commit: 18368c6bd4d4679d11074d0c9a61386ce1d958a4
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=18368c6bd4d4679d11074d0c9a61386ce1d958a4
Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date: Tue Aug 24 11:43:36 2010 +0200
core: fix mod_register & dlflags
dlflags changes in mod_register() functions were discarded
resulting in modules failing to load.
(cherry picked from commit 931bd29d504f01eeab738ee5dad72fe7be858adb)
---
sr_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sr_module.c b/sr_module.c
index 351d7fa..97c13af 100644
--- a/sr_module.c
+++ b/sr_module.c
@@ -414,7 +414,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;
}
More information about the sr-dev
mailing list