[sr-dev] git:master: core: fix mod_register & dlflags

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Aug 24 12:38:33 CEST 2010


Module: sip-router
Branch: master
Commit: 931bd29d504f01eeab738ee5dad72fe7be858adb
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=931bd29d504f01eeab738ee5dad72fe7be858adb

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.

---

 sr_module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sr_module.c b/sr_module.c
index 421f1b7..c759a17 100644
--- a/sr_module.c
+++ b/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;
 		}




More information about the sr-dev mailing list