aboutsummaryrefslogtreecommitdiff
path: root/reqres.go
diff options
context:
space:
mode:
Diffstat (limited to 'reqres.go')
-rw-r--r--reqres.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/reqres.go b/reqres.go
index 5013d95..8e1c454 100644
--- a/reqres.go
+++ b/reqres.go
@@ -113,7 +113,7 @@ func (lp *LogParameters) newGetProofByHashRequest(httpRequest *http.Request) (*G
if err != nil {
return nil, fmt.Errorf("bad tree_size parameter: %v", err)
}
- if size < 0 {
+ if size < 1 {
return nil, fmt.Errorf("bad tree_size parameter: negative value")
}
hash, err := deb64(httpRequest.FormValue("hash"))