From f1b7b0381a9ef285092a4043eaeb81e12913bb71 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Oct 2015 11:49:22 -0500 Subject: Remove any chance of passwords persisting in deallocated main memory after application termination --- src/libtdeldap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 0549759..661e3e6 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -5529,7 +5529,8 @@ LDAPCredentials::LDAPCredentials() { } LDAPCredentials::~LDAPCredentials() { - // + // Overwrite password data before destroying object + password.fill(0); } LDAPUserInfo::LDAPUserInfo() { -- cgit v1.2.1