Browse Source

htable: check if event route is defined and has a list of actions

- adding in the to-do list for event_route
	- check if the event is exported by core or modules
Daniel-Constantin Mierla 16 years ago
parent
commit
763a138ce9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/htable/htable.c

+ 1 - 1
modules_k/htable/htable.c

@@ -174,7 +174,7 @@ static int child_init(int rank)
 		return 0;
 	
 	rt = route_get(&event_rt, "htable:mod-init");
-	if(rt>=0) {
+	if(rt>=0 && event_rt.rlist[rt]!=NULL) {
 		LM_DBG("executing event_route[htable:mod-init] (%d)\n", rt);
 		if(faked_msg_init()<0)
 			return -1;