Browse Source

Fix #187

Fixed manually. Found by Isaac Cook (icook). Thanks!
PascalCoin 6 years ago
parent
commit
ae4217eade
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/URPC.pas

+ 1 - 0
src/core/URPC.pas

@@ -1547,6 +1547,7 @@ function TRPCProcess.ProcessMethod(const method: String; params: TPCJSONObject;
     i : Integer;
     i : Integer;
     OperationsResumeList : TOperationsResumeList;
     OperationsResumeList : TOperationsResumeList;
   Begin
   Begin
+    Result := False;
     if Not TPascalCoinJSONComp.HexaStringToOperationsHashTree(HexaStringOperationsHashTree,OperationsHashTree,errors) then begin
     if Not TPascalCoinJSONComp.HexaStringToOperationsHashTree(HexaStringOperationsHashTree,OperationsHashTree,errors) then begin
       ErrorNum:=CT_RPC_ErrNum_InvalidData;
       ErrorNum:=CT_RPC_ErrNum_InvalidData;
       ErrorDesc:= 'Error decoding param "rawoperations": '+errors;
       ErrorDesc:= 'Error decoding param "rawoperations": '+errors;