diff --git a/node/Revocation.hpp b/node/Revocation.hpp index 46a5d4f8..17eefcb8 100644 --- a/node/Revocation.hpp +++ b/node/Revocation.hpp @@ -155,7 +155,7 @@ public: template inline unsigned int deserialize(const Buffer &b,unsigned int startAt = 0) { - memset(this,0,sizeof(Revocation)); + *this = Revocation(); unsigned int p = startAt;