Router match logic corrected
This commit is contained in:
parent
ffc9e8571b
commit
9411039fce
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ R3Route * r3_tree_match_route(const R3Node *tree, match_entry * entry) {
|
||||||
R3Node *n;
|
R3Node *n;
|
||||||
R3Route *r;
|
R3Route *r;
|
||||||
n = r3_tree_match_entry(tree, entry);
|
n = r3_tree_match_entry(tree, entry);
|
||||||
unsigned int i, irs = n->routes.size;
|
unsigned int i, irs;
|
||||||
if (n && irs) {
|
if (n && (irs = n->routes.size)) {
|
||||||
r = n->routes.entries;
|
r = n->routes.entries;
|
||||||
for (i = 0; irs - i; i++) {
|
for (i = 0; irs - i; i++) {
|
||||||
if ( r3_route_cmp(r, entry) == 0 ) {
|
if ( r3_route_cmp(r, entry) == 0 ) {
|
||||||
|
|
Loading…
Reference in a new issue