瀏覽代碼

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 年之前
父節點
當前提交
763a138ce9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;