From b415a583fa3ec21edeb8177b4e59a6bd176b3856 Mon Sep 17 00:00:00 2001 From: Tim Bruijnzeels Date: Fri, 11 Oct 2019 12:42:15 +0200 Subject: [PATCH] Allow IPv6 only ROAs. (#82) --- src/roa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roa.rs b/src/roa.rs index 96ae3091..5266ec3a 100644 --- a/src/roa.rs +++ b/src/roa.rs @@ -538,7 +538,7 @@ impl RoaBuilder { let v4 = self.v4.to_resources(); let v6 = self.v6.to_resources(); // There must be some resources in order to make a valid ROA. - assert!(v4.is_some() || v6.is_none()); + assert!(v4.is_some() || v6.is_some()); sigobj.set_v4_resources(v4); sigobj.set_v6_resources(v6); let signed = sigobj.finalize(