Compare commits

..

No commits in common. "master" and "v3.17.0" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -70,7 +70,6 @@ func newConfig(cachePolicy int, ipVersion *xdb.Version, xdbPath string, searcher
if err != nil {
return nil, err
}
defer handle.Close()
// 1, verify the xdb
err = xdb.Verify(handle)

View File

@ -61,7 +61,7 @@ type Header struct {
}
func NewHeader(input []byte) (*Header, error) {
if len(input) < 20 {
if len(input) < 16 {
return nil, fmt.Errorf("invalid input buffer")
}