mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-12-17 04:24:19 +01:00
loglist: fail validation if log has negative MMD
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user