]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filters: Function body comparison result now used.
authorMaria Matejka <mq@ucw.cz>
Fri, 20 Sep 2019 08:16:51 +0000 (10:16 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 23 Sep 2019 12:03:26 +0000 (14:03 +0200)
Function bodies were compared in post-parse time, yet the result was not
used and the functions were incorrectly considered the same as before.

Now the result is used to reload affected protocols.

filter/f-inst.c

index 49ae993a2e158a7950fc54dab021d61992d86ef5..385d18d054a5cf3de58177744f1b980432b36db6 100644 (file)
     NEVER_CONSTANT;
     SYMBOL;
 
+    FID_SAME_BODY()
+      if (!(f2->sym->flags & SYM_FLAG_SAME))
+       return 0;
+    FID_INTERPRET_BODY()
+
     /* Push the body on stack */
     LINEX(sym->function);
     curline.emask |= FE_RETURN;