From 7831c4bfef2c340de01ff08461bd7f6a0e54ce32 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 18 Apr 2014 00:14:12 -0700 Subject: Cleanup, dead code removal, some pretty insignificant security stuff that's based on recommendations. --- node/Buffer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/Buffer.hpp') diff --git a/node/Buffer.hpp b/node/Buffer.hpp index 3c4c4015..bc74f048 100644 --- a/node/Buffer.hpp +++ b/node/Buffer.hpp @@ -380,12 +380,12 @@ public: } /** - * Unconditionally zero buffer's underlying memory + * Unconditionally and securely zero buffer's underlying memory */ - inline void zeroAll() + inline void burn() throw() { - memset(_b,0,sizeof(_b)); + Utils::burn(_b,sizeof(_b)); } /** -- cgit v1.2.3