diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2013-10-30 00:51:25 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2013-10-30 00:51:25 -0700 |
commit | 951ed190fb8c609db2247eba59665a338ea824a9 (patch) | |
tree | d1354bb9e034d5d1fc5afdca9958f0c31af19571 /src/serialize.h | |
parent | e13934c94eb6e95c21e04b92c4b0775b2bded67e (diff) | |
parent | 9038b18f4655a5b8ad119d768decd1c693ebd7dd (diff) |
Merge pull request #3173 from gavinandresen/fuzzmessages
-fuzzmessagestest=N : randomly corrupt 1-of-N sent messages
Diffstat (limited to 'src/serialize.h')
-rw-r--r-- | src/serialize.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialize.h b/src/serialize.h index d6e616b1cf..115ea1d447 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -1091,8 +1091,8 @@ public: } void GetAndClear(CSerializeData &data) { - vch.swap(data); - CSerializeData().swap(vch); + data.insert(data.end(), begin(), end()); + clear(); } }; |