]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix Fuzzyconvert tool when password or DB is given 1163/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 22 Nov 2016 08:50:16 +0000 (10:50 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 22 Nov 2016 08:56:13 +0000 (10:56 +0200)
Reported-By: @dehnli
src/rspamadm/fuzzy_convert.lua

index fb957907a2b746751d99e56826b2523b83ee0804..2d473ca46514c91288bf331ebe04b4d8a00da878 100644 (file)
@@ -25,13 +25,6 @@ local function connect_redis(server, password, db)
     end
   end
 
-  if password or db then
-    ret, err = conn:exec()
-    if not ret then
-     return nil, 'Cannot execute queued commands: ' .. err
-    end
-  end
-
   return conn, nil
 end