fix: cancel retrieval deal - disallow negative deal ID

This commit is contained in:
Dirk McCormick
2021-03-26 09:51:07 +01:00
parent 36c3086376
commit b13f6a3209
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1996,7 +1996,7 @@ var clientCancelRetrievalDeal = &cli.Command{
defer closer()
ctx := ReqContext(cctx)
if cctx.Int64("dealid") <= 0 {
if cctx.Int64("dealid") < 0 {
return errors.New("deal id cannot be negative")
}