Browse Source

Merge pull request #772 from lukechilds/patch-2

Fix missing early return bug in LP_cancel_order
patch-3
jl777 7 years ago
committed by GitHub
parent
commit
82c9daf97e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      iguana/exchanges/LP_ordermatch.c

2
iguana/exchanges/LP_ordermatch.c

@ -629,7 +629,7 @@ char *LP_cancel_order(char *uuidstr)
{ {
LP_failedmsg(LP_Alicequery.R.requestid,LP_Alicequery.R.quoteid,-9998,LP_Alicequery.uuidstr); LP_failedmsg(LP_Alicequery.R.requestid,LP_Alicequery.R.quoteid,-9998,LP_Alicequery.uuidstr);
LP_alicequery_clear(); LP_alicequery_clear();
clonestr("{\"result\":\"success\",\"status\":\"uuid canceled\"}"); return(clonestr("{\"result\":\"success\",\"status\":\"uuid canceled\"}"));
} }
return(clonestr("{\"error\":\"uuid not cancellable\"}")); return(clonestr("{\"error\":\"uuid not cancellable\"}"));
} }

Loading…
Cancel
Save