diff options
author | Mark Friedenbach <mark@blockstream.io> | 2014-10-16 16:16:29 -0700 |
---|---|---|
committer | Mark Friedenbach <mark@blockstream.io> | 2014-10-17 00:33:31 -0700 |
commit | d4746d56c0c45b8721da36bc19b2bdaba5d7d094 (patch) | |
tree | 01304911064e6f0ccce518ab2d7456b89681d0c4 /src/rpcserver.cpp | |
parent | e8f6d54f1f58d9a5998e37367b84b427e51e1ad7 (diff) |
Add a SECURE style flag for ThreadSafeMessageBox, which indicates that the message contains sensitive information. This keeps the message from being output to the debug log by bitcoind. Fixes a possible security risk when starting bitcoind in server mode without the 'rpcpassword' option configured, resulting in the "suggested" password being output to the debug log.
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r-- | src/rpcserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 1a41344da5..9668c78831 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -581,7 +581,7 @@ void StartRPCThreads() strWhatAmI, GetConfigFile().string(), EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32)), - "", CClientUIInterface::MSG_ERROR); + "", CClientUIInterface::MSG_ERROR | CClientUIInterface::SECURE); StartShutdown(); return; } |