]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filter: Fix function comparison
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 10 Dec 2019 17:53:16 +0000 (18:53 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 10 Dec 2019 17:53:16 +0000 (18:53 +0100)
Check the SYM_FLAG_SAME in new symbols. The old code checked that
in old symbols (f2).

filter/f-inst.c

index e3e0d76d9dafa1fd02342540eb72a77902b10f24..51a35350986adaa7e09621b0e0326183f2c54b35 100644 (file)
     SYMBOL;
 
     FID_SAME_BODY()
-      if (!(f2->sym->flags & SYM_FLAG_SAME))
+      if (!(f1->sym->flags & SYM_FLAG_SAME))
        return 0;
     FID_INTERPRET_BODY()