Module: sip-router
Branch: 4.0
Commit: f5c68b4dedb5e704fe13fe61ad256bc23c9a3865
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f5c68b4…
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
(cherry picked from commit c3386295d7607a58d37a65b6822bf5f98b3fefa0)
(cherry picked from commit a9a3cebc7688dcaea7539c067c4b1bf3463040ce)
---
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 43fd73e..e7e8d4b 100644
--- a/modules/drouting/drouting.c
+++ b/modules/drouting/drouting.c
@@ -740,7 +740,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 */