1
0
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:
Louis Poinsignon
2020-06-05 16:46:57 -07:00
parent f40cd9bff2
commit 10e50c95ca

View File

@ -135,6 +135,9 @@ func (s *SlurmLocallyAddedAssertions) AssertROAs() []ROAJson {
} }
for _, assertion := range s.PrefixAssertions { for _, assertion := range s.PrefixAssertions {
prefix := assertion.GetPrefix() prefix := assertion.GetPrefix()
if prefix == nil {
continue
}
size, _ := prefix.Mask.Size() size, _ := prefix.Mask.Size()
maxLength := assertion.MaxPrefixLength maxLength := assertion.MaxPrefixLength
if assertion.MaxPrefixLength <= size { if assertion.MaxPrefixLength <= size {