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
This commit is contained in:
parent
86be48a77c
commit
9756be382e
1 changed files with 1 additions and 1 deletions
|
@ -2077,7 +2077,7 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
|
||||||
|
|
||||||
int64_t nSleepTime = request.params[1].get_int64();
|
int64_t nSleepTime = request.params[1].get_int64();
|
||||||
pwallet->nRelockTime = GetTime() + nSleepTime;
|
pwallet->nRelockTime = GetTime() + nSleepTime;
|
||||||
RPCRunLater(strprintf("lockwallet_%u", uintptr_t(pwallet)), boost::bind(LockWallet, pwallet), nSleepTime);
|
RPCRunLater(strprintf("lockwallet(%s)", pwallet->strWalletFile), boost::bind(LockWallet, pwallet), nSleepTime);
|
||||||
|
|
||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue