Merge #292: callrpc: Check correct mainchainrpc field

add80bb callrpc: Check correct mainchainrpc field (Gregory Sanders)
This commit is contained in:
Gregory Sanders 2017-12-12 14:10:27 -05:00
commit 0c0c17fc50
No known key found for this signature in database
GPG key ID: F3F68E2D86A48FDB

View file

@ -111,7 +111,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params, bool conn
// Get credentials
std::string strRPCUserColonPass;
if (GetArg("-rpcpassword", "") == "") {
if (GetArg(strpassword, "") == "") {
// Try fall back to cookie-based authentication if no password is provided
if (!connectToMainchain && !GetAuthCookie(&strRPCUserColonPass)) {