From 3f477ccb03ed99cf6754baaca179fcf791bcda55 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 20 Sep 2019 10:16:51 +0200 Subject: [PATCH] Filters: Function body comparison result now used. 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/filter/f-inst.c b/filter/f-inst.c index 49ae993a..385d18d0 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -897,6 +897,11 @@ 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;