Skip to content

Commit 3bfa7d8

Browse files
luke-jrrandom-zebra
authored andcommitted
Wallet/RPC: Use filename rather than CWallet pointer, for lockwallet
RPCRunLater job name The job name is logged, and could pose as an information leak to someone attacking the process, helping them counteract ASLR protections
1 parent ca6a62d commit 3bfa7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
34273427

34283428
if (nSleepTime > 0) {
34293429
pwallet->nRelockTime = GetTime () + nSleepTime;
3430-
RPCRunLater ("lockwallet", std::bind (LockWallet, pwallet), nSleepTime);
3430+
RPCRunLater (strprintf("lockwallet(%s)", pwallet->GetName()), std::bind (LockWallet, pwallet), nSleepTime);
34313431
}
34323432

34333433
return NullUniValue;

0 commit comments

Comments
 (0)