when hashsize is Invalid, add an error log

This commit is contained in:
hangaoshuai 2018-07-25 12:01:34 +08:00
parent 9e0c4a6095
commit 18873a8d52

View File

@ -111,7 +111,7 @@ func (set *IPSet) Validate() bool {
}
// check hash size value of ipset
if set.HashSize <= 0 {
glog.Errorf("Invalid hashsize value %d, should be >0", set.HashSize)
return false
}
// check max elem value of ipset