Skip to content

Commit

Permalink
Vault3991 Fix lower bound check (hashicorp#13727)
Browse files Browse the repository at this point in the history
* code scanning alerts changes

* adding changelog

* fixing lower bound check
  • Loading branch information
akshya96 authored and Artem Alexandrov committed Feb 4, 2022
1 parent bf663c7 commit 68a28c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/base_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (i *uintValue) Set(s string) error {
if err != nil {
return err
}
if v > 0 && v <= math.MaxUint {
if v >= 0 && v <= math.MaxUint {
*i.target = uint(v)
return nil
}
Expand Down

0 comments on commit 68a28c0

Please sign in to comment.