Fix bug in ykpiv_util_block_puk

Introduced in b750b9cbbb.
This commit is contained in:
Jack Grigg
2019-11-20 12:25:23 +00:00
parent a43bddb531
commit 9252765940
+1 -1
View File
@@ -547,7 +547,7 @@ pub unsafe fn ykpiv_util_block_puk(state: &mut YubiKey) -> Result<(), ErrorKind>
continue;
}
Err(e) => {
if res != Err(ErrorKind::PinLocked) {
if e != ErrorKind::PinLocked {
_currentBlock = 3;
continue;
}