From 963cbac6b34c7bdd8836ab04d0bf0c6b9d3d25df Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 12 Feb 2026 10:40:28 +0100 Subject: [PATCH] Better var name Signed-off-by: Otto Moerbeek --- pdns/recursordist/rec-rust-lib/rust/src/web.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/recursordist/rec-rust-lib/rust/src/web.rs b/pdns/recursordist/rec-rust-lib/rust/src/web.rs index 12e2acbcdc..3b2b99bb61 100644 --- a/pdns/recursordist/rec-rust-lib/rust/src/web.rs +++ b/pdns/recursordist/rec-rust-lib/rust/src/web.rs @@ -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"; -- 2.47.3