From 7664065cf61066dc59a7cdac5a3aaf3ab2baf730 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 18 Oct 2012 18:48:06 -0700 Subject: [PATCH] WS: Make ledger_entry more strict. --- src/WSDoor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WSDoor.cpp b/src/WSDoor.cpp index f3726ee53..71deb7d0a 100644 --- a/src/WSDoor.cpp +++ b/src/WSDoor.cpp @@ -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"; }