RPC: Fix parsing of ripple options limit and average.

This commit is contained in:
Arthur Britto
2012-09-28 12:29:44 -07:00
parent 5b94396890
commit e2fb75046f

View File

@@ -1451,7 +1451,7 @@ Json::Value RPCServer::doRipple(const Json::Value &params)
bLimit = params.size() != iArg ? params[iArg].asString() == "limit" : false;
bAverage = params.size() != iArg ? params[iArg].asString() == "average" : false;
if (!bPartial && !bFull)
if (!bLimit && !bAverage)
{
return RPCError(rpcINVALID_PARAMS);
}