]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Better var name 16855/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Feb 2026 09:40:28 +0000 (10:40 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Feb 2026 09:41:02 +0000 (10:41 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-rust-lib/rust/src/web.rs

index 12e2acbcdcd415dadd183a62f9f273f0dbeed054..3b2b99bb612f02b0d1f6783981c88bc6ed23253a 100644 (file)
@@ -1077,15 +1077,15 @@ fn load_pkcs12_key_and_certs(
     match keystore_file {
         Ok(keystore) => {
             if let Some((_alias, chain)) = keystore.private_key_chain() {
-                let key = PrivateKeyDer::try_from(chain.key().to_owned());
-                match key {
-                    Ok(ok) => {
+                let key_or_err = PrivateKeyDer::try_from(chain.key().to_owned());
+                match key_or_err {
+                    Ok(key) => {
                         let mut certs = vec![];
                         for cert in chain.chain().to_owned() {
                             let converted = CertificateDer::from_slice(cert.as_der());
                             certs.push(converted.into_owned());
                         }
-                        return Ok((ok, certs));
+                        return Ok((key, certs));
                     }
                     Err(err) => {
                         let msg = "Failed to parse private key in pkcs12 file";