lib: check that serial/version checks occur during select
This commit is contained in:
+2
-2
@@ -291,8 +291,8 @@ ykpiv_rc _ykpiv_select_application(ykpiv_state *state) {
|
|||||||
* can determine how to get the serial number, which for the NEO/Yk4
|
* can determine how to get the serial number, which for the NEO/Yk4
|
||||||
* will result in another selection of the PIV applet. */
|
* will result in another selection of the PIV applet. */
|
||||||
|
|
||||||
_ykpiv_get_version(state, NULL);
|
res = _ykpiv_get_version(state, NULL);
|
||||||
_ykpiv_get_serial(state, NULL, false);
|
if (res == YKPIV_OK) res = _ykpiv_get_serial(state, NULL, false);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user