diff options
author | lloyd <[email protected]> | 2008-11-11 00:52:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 00:52:20 +0000 |
commit | 5e340b886319bb21f269520af2d62789df3467d4 (patch) | |
tree | 5e28c56bd014ed1b990f7bc09c8608063ecd9c91 /src/libstate | |
parent | 24106cff68c51374716d45603f59df64c4f2938c (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.cpp | 3 |
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()); |