Browse Source

Fixed tm_load import (It would be advisable to use tm_load_api instead )
(cherry picked from commit 12d008ca184460755f09bf4090f0298d4a092e84)

Marius Zbihlei 16 years ago
parent
commit
8854c7446d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules_k/pua_xmpp/pua_xmpp.c

+ 2 - 1
modules_k/pua_xmpp/pua_xmpp.c

@@ -136,11 +136,12 @@ static int mod_init(void)
 	server_address.len= strlen(server_address.s);
 
 	/* import the TM auto-loading function */
-	if((load_tm=(load_tm_f)find_export("load_tm", 0, 0))==NULL)
+	if((load_tm=(load_tm_f)find_export("load_tm", NO_SCRIPT, 0))==NULL)
 	{
 		LM_ERR("can't import load_tm\n");
 		return -1;
 	}
+
 	/* let the auto-loading function load all TM stuff */
 
 	if(load_tm(&tmb)==-1)