diff --git a/loglist/validate.go b/loglist/validate.go index 8cc2750..254846f 100644 --- a/loglist/validate.go +++ b/loglist/validate.go @@ -49,5 +49,9 @@ func (log *Log) Validate() error { return fmt.Errorf("inconsistent URLs provided") } + if log.MMD < 0 { + return fmt.Errorf("log has a negative MMD") + } + return nil }