0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Filter: Avoid calling interpret() on NULL in IF

This commit is contained in:
Jan Maria Matejka 2018-05-31 11:27:34 +02:00
parent 76cc61fa51
commit ef74e5508a

View File

@ -899,12 +899,14 @@ interpret(struct f_inst *what)
break; break;
case FI_CONDITION: case FI_CONDITION:
ARG(1, T_BOOL); ARG(1, T_BOOL);
if (v1.val.i) { if (v1.val.i && what->a2.p) {
ARG_ANY(2); ARG_ANY(2);
} else { break;
ARG_ANY(3); }
if ((!v1.val.i) && what->a3.p) {
ARG_ANY(3);
break;
} }
break;
case FI_NOP: case FI_NOP:
debug( "No operation\n" ); debug( "No operation\n" );
break; break;