loglist: fail validation if log has negative MMD

This commit is contained in:
Andrew Ayer
2025-07-26 11:11:50 -04:00
parent efea8a20aa
commit 1533a277e0

View File

@@ -49,5 +49,9 @@ func (log *Log) Validate() error {
return fmt.Errorf("inconsistent URLs provided") return fmt.Errorf("inconsistent URLs provided")
} }
if log.MMD < 0 {
return fmt.Errorf("log has a negative MMD")
}
return nil return nil
} }