lib: check that serial/version checks occur during select

This commit is contained in:
Dave Pate
2019-01-17 15:49:21 -08:00
committed by Klas Lindfors
parent 934120888f
commit 340177f070
+2 -2
View File
@@ -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
* will result in another selection of the PIV applet. */
_ykpiv_get_version(state, NULL);
_ykpiv_get_serial(state, NULL, false);
res = _ykpiv_get_version(state, NULL);
if (res == YKPIV_OK) res = _ykpiv_get_serial(state, NULL, false);
return res;
}