mirror of
https://github.com/cloudflare/gortr.git
synced 2024-05-19 06:50:10 +00:00
Handle invalid slurm entry #67
This commit is contained in:
@ -135,6 +135,9 @@ func (s *SlurmLocallyAddedAssertions) AssertROAs() []ROAJson {
|
||||
}
|
||||
for _, assertion := range s.PrefixAssertions {
|
||||
prefix := assertion.GetPrefix()
|
||||
if prefix == nil {
|
||||
continue
|
||||
}
|
||||
size, _ := prefix.Mask.Size()
|
||||
maxLength := assertion.MaxPrefixLength
|
||||
if assertion.MaxPrefixLength <= size {
|
||||
|
Reference in New Issue
Block a user