Fix some bugs in filter interpret.
This commit is contained in:
parent
ebacaf6f7b
commit
44711e0ca2
1 changed files with 5 additions and 2 deletions
|
@ -655,7 +655,7 @@ interpret(struct f_inst *what)
|
||||||
ONEARG;
|
ONEARG;
|
||||||
res = v1;
|
res = v1;
|
||||||
res.type |= T_RETURN;
|
res.type |= T_RETURN;
|
||||||
break;
|
return res;
|
||||||
case P('c','a'): /* CALL: this is special: if T_RETURN and returning some value, mask it out */
|
case P('c','a'): /* CALL: this is special: if T_RETURN and returning some value, mask it out */
|
||||||
ONEARG;
|
ONEARG;
|
||||||
res = interpret(what->a2.p);
|
res = interpret(what->a2.p);
|
||||||
|
@ -676,7 +676,10 @@ interpret(struct f_inst *what)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* It is actually possible to have t->data NULL */
|
/* It is actually possible to have t->data NULL */
|
||||||
return interpret(t->data);
|
|
||||||
|
res = interpret(t->data);
|
||||||
|
if (res.type & T_RETURN)
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case P('i','M'): /* IP.MASK(val) */
|
case P('i','M'): /* IP.MASK(val) */
|
||||||
|
|
Loading…
Reference in a new issue