From 9309c11521c7a93357f1160edf9693f8b50f4441 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 18 Mar 2011 16:07:23 +0300 Subject: Fix misprint in multimap module. Fix how we detect weight of symbol in a cache. --- src/plugins/lua/multimap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/lua') diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 699d2cc75..023801e45 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -103,11 +103,11 @@ function check_multimap(task) local _,_,ext = string.find(r['addr'], rule['pattern']) if ext then if rule['cdb'] then - if rule['hash']:lookup(hv) then + if rule['hash']:lookup(ext) then task:insert_result(rule['symbol'], 1) end else - if rule['hash']:get_key(hv) then + if rule['hash']:get_key(ext) then task:insert_result(rule['symbol'], 1) end end -- cgit v1.2.3