[sr-dev] git:master: tm: fix minor tm_load_xapi bug

Andrei Pelinescu-Onciul andrei at iptel.org
Sat Jun 11 11:34:04 CEST 2011


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Sat Jun 11 11:32:16 2011 +0200

tm: fix minor tm_load_xapi bug

Due to a typo the check for load_xtm not found was wrong.

---

 modules/tm/tm_load.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index aad979b..370c2ef 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -191,7 +191,7 @@ static inline int tm_load_xapi(tm_xapi_t *xtmb)
 	/* import the TM auto-loading function */
 	load_xtm = (load_xtm_f)find_export("load_xtm", NO_SCRIPT, 0);
 
-	if (load_tm == NULL) {
+	if (load_xtm == NULL) {
 		LOG(L_WARN, "Cannot import load_xtm function from tm module\n");
 		return -1;
 	}




More information about the sr-dev mailing list