Fix unused variable warning from handshake fix

This commit is contained in:
MattJackson
2026-04-15 01:56:57 +00:00
parent 2f48877992
commit 5a9980cb6b
+1 -4
View File
@@ -25,7 +25,6 @@ impl Disc {
let keydb_path = opts.resolve_keydb()?; let keydb_path = opts.resolve_keydb()?;
let keydb = KeyDb::load(&keydb_path).ok()?; let keydb = KeyDb::load(&keydb_path).ok()?;
let mut last_error = None;
for hc in &keydb.host_certs { for hc in &keydb.host_certs {
match aacs::handshake::aacs_authenticate(session, &hc.private_key, &hc.certificate) { match aacs::handshake::aacs_authenticate(session, &hc.private_key, &hc.certificate) {
Ok(mut auth) => { Ok(mut auth) => {
@@ -41,9 +40,7 @@ impl Disc {
read_data_key, read_data_key,
}); });
} }
Err(e) => { Err(_) => {
// Try next host cert
last_error = Some(e);
continue; continue;
} }
} }