From 1533a277e0d84050dd11704f38bfca3e0a1bc22c Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sat, 26 Jul 2025 11:11:50 -0400 Subject: [PATCH] loglist: fail validation if log has negative MMD --- loglist/validate.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }