Browse Source

drouting: removed old contraint on route index

Daniel-Constantin Mierla 11 years ago
parent
commit
c3386295d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/drouting/drouting.c

+ 1 - 1
modules/drouting/drouting.c

@@ -754,7 +754,7 @@ again:
 		}
 	}
 
-	if (rt_info->route_idx>0 && rt_info->route_idx<RT_NO) {
+	if (rt_info->route_idx>0 && main_rt.rlist[rt_info->route_idx]!=NULL) {
 		ret = run_top_route(main_rt.rlist[rt_info->route_idx], msg, 0);
 		if (ret<1) {
 			/* drop the action */