aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-10-30 00:51:25 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-10-30 00:51:25 -0700
commit951ed190fb8c609db2247eba59665a338ea824a9 (patch)
treed1354bb9e034d5d1fc5afdca9958f0c31af19571 /src/serialize.h
parente13934c94eb6e95c21e04b92c4b0775b2bded67e (diff)
parent9038b18f4655a5b8ad119d768decd1c693ebd7dd (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.h4
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();
}
};