reader-pcsc: get tlv properties only when supported

This commit is contained in:
Frank Morgner 2015-11-17 00:52:49 +01:00
parent 641a71a2f4
commit d9fc49daa5
1 changed files with 3 additions and 0 deletions

View File

@ -1713,6 +1713,9 @@ part10_check_pin_min_max(sc_reader_t *reader, struct sc_pin_cmd_data *data)
data->flags & SC_PIN_CMD_IMPLICIT_CHANGE ?
&data->pin1 : &data->pin2;
if (!priv->get_tlv_properties)
return 0;
r = pcsc_internal_transmit(reader, NULL, 0, buffer, &length,
priv->get_tlv_properties);
SC_TEST_RET(reader->ctx, SC_LOG_DEBUG_NORMAL, r,