WS: Make ledger_entry more strict.

This commit is contained in:
Arthur Britto
2012-10-18 18:48:06 -07:00
parent b70e12ee61
commit 7664065cf6

View File

@@ -637,7 +637,8 @@ void WSConnection::doLedgerEntry(Json::Value& jvResult, const Json::Value& jvReq
{
NewcoinAddress naAccount;
if (!naAccount.setAccountID(jvRequest["account_root"].asString()))
if (!naAccount.setAccountID(jvRequest["account_root"].asString())
|| !naAccount.getAccountID())
{
jvResult["error"] = "malformedAddress";
}