Vault3991 Fix lower bound check (#13727)

* code scanning alerts changes

* adding changelog

* fixing lower bound check
This commit is contained in:
akshya96 2022-01-20 12:05:22 -08:00 committed by GitHub
parent ab9a91bec9
commit 0858af2685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}