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 77e6d08ff6
commit d58c95d457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}