From 4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 15 Feb 2010 21:21:02 -0800 Subject: [PATCH] PR11282: Keep the md4 state in the hash copy constructor We were getting new hash collisions, because the new hash copy constructor was restarting the md4 computation. Everything from get_base_hash was thus lost. * hash.h (hash::hash): Keep the md4 state when copying. --- hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.h b/hash.h index 173f8e51e..0c1a745f9 100644 --- a/hash.h +++ b/hash.h @@ -19,7 +19,7 @@ private: public: hash() { start(); } - hash(const hash &base) { start(); parm_stream << base.parm_stream.str();} + hash(const hash &base) { md4 = base.md4; parm_stream << base.parm_stream.str(); } void start(); -- 2.43.5