diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-06-20 12:19:50 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-06-20 12:19:50 +0000 |
commit | d851383a762d9a2318df19951e906bae86f13812 (patch) | |
tree | b199af7434018c8a86a5eb87208ca239552b1e22 /cpp/src/IceSSL/Instance.cpp | |
parent | fixed bug in script. added support for --debug. (diff) | |
download | ice-d851383a762d9a2318df19951e906bae86f13812.tar.bz2 ice-d851383a762d9a2318df19951e906bae86f13812.tar.xz ice-d851383a762d9a2318df19951e906bae86f13812.zip |
clearing the password
Diffstat (limited to 'cpp/src/IceSSL/Instance.cpp')
-rw-r--r-- | cpp/src/IceSSL/Instance.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/Instance.cpp b/cpp/src/IceSSL/Instance.cpp index cfacf5ac233..f60b1e07676 100644 --- a/cpp/src/IceSSL/Instance.cpp +++ b/cpp/src/IceSSL/Instance.cpp @@ -42,6 +42,9 @@ opensslPasswordCallback(char* buf, int size, int flag, void* userData) } strncpy(buf, passwd.c_str(), sz); buf[sz] = '\0'; + + memset(&passwd[0], 0, static_cast<size_t>(passwd.size())); + return sz; } |