diff options
author | Josh Stone <jistone@redhat.com> | 2010-02-15 21:21:02 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-02-16 15:55:01 -0800 |
commit | 4fa8e6497405fd4f121a3eee0c6d772aaeeef6d8 (patch) | |
tree | b36ce6ee5258dab7efee4d8c5d4f5c1572e3b795 | |
parent | 2a818a16b0c371977303e464bfc75ad8814a9c7a (diff) | |
download | systemtap-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |