diff --git a/openssl/src/x509/sbgp.rs b/openssl/src/x509/sbgp.rs index 3c9615e79b..013451f64e 100644 --- a/openssl/src/x509/sbgp.rs +++ b/openssl/src/x509/sbgp.rs @@ -170,8 +170,8 @@ impl IPAddressFamily { 16, ); r.push(( - Self::data_to_ip_addr(min.assume_init(), size)?, - Self::data_to_ip_addr(max.assume_init(), size)?, + Self::data_to_ip_addr(min.assume_init(), size.try_into().unwrap())?, + Self::data_to_ip_addr(max.assume_init(), size.try_into().unwrap())?, )) } }