aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-11 00:52:20 +0000
committerlloyd <[email protected]>2008-11-11 00:52:20 +0000
commit5e340b886319bb21f269520af2d62789df3467d4 (patch)
tree5e28c56bd014ed1b990f7bc09c8608063ecd9c91 /src/libstate
parent24106cff68c51374716d45603f59df64c4f2938c (diff)
Fix leak in Luby-Rackoff lookup (got new object instead of prototype as intented)
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/engine/def_engine/lookup_block.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstate/engine/def_engine/lookup_block.cpp b/src/libstate/engine/def_engine/lookup_block.cpp
index 3503433e8..64a969dce 100644
--- a/src/libstate/engine/def_engine/lookup_block.cpp
+++ b/src/libstate/engine/def_engine/lookup_block.cpp
@@ -231,8 +231,7 @@ Default_Engine::find_block_cipher(const SCAN_Name& request,
#if defined(BOTAN_HAS_LUBY_RACKOFF)
if(request.algo_name() == "Luby-Rackoff" && request.arg_count() == 1)
{
- const HashFunction* hash =
- af.make_hash_function(request.arg(0));
+ const HashFunction* hash = af.prototype_hash_function(request.arg(0));
if(hash)
return new LubyRackoff(hash->clone());