callrpc: Check correct mainchainrpc field

This commit is contained in:
Gregory Sanders 2017-11-29 11:36:41 -05:00
parent 0f9e9fd2c5
commit add80bbdcd

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)) {