summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-02-15 21:21:02 -0800
committerJosh Stone <jistone@redhat.com>2010-02-16 15:55:01 -0800
commit4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8 (patch)
treeb36ce6ee5258dab7efee4d8c5d4f5c1572e3b795
parent2a818a16b0c371977303e464bfc75ad8814a9c7a (diff)
downloadsystemtap-steved-4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8.tar.gz
systemtap-steved-4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8.tar.xz
systemtap-steved-4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8.zip
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.
-rw-r--r--hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.h b/hash.h
index 173f8e51..0c1a745f 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();