Fix unused variable warning from handshake fix
This commit is contained in:
+1
-4
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user