Module: sip-router
Branch: master
Commit: c3386295d7607a58d37a65b6822bf5f98b3fefa0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c338629…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Apr 24 18:02:34 2014 +0200
drouting: removed old contraint on route index
---
modules/drouting/drouting.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/drouting/drouting.c b/modules/drouting/drouting.c
index d7307cf..2295618 100644
--- a/modules/drouting/drouting.c
+++ b/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 */