summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-01 16:49:22 (GMT)
committer Timothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-01 16:49:22 (GMT)
commitf1b7b0381a9ef285092a4043eaeb81e12913bb71 (patch)
tree82a4aff62342ab2b1565df53fc80e18fdd150b6e
parente1d85d3d83c1317e60c889a85784e3933255c27e (diff)
downloadlibtdeldap-f1b7b038.zip
libtdeldap-f1b7b038.tar.gz
Remove any chance of passwords persisting in deallocated main memory after application termination
-rw-r--r--src/libtdeldap.cpp3
1 files changed, 2 insertions, 1 deletions
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() {