- store select response only when channel is opened.
Change-Id: Ibef945e9b60fdc270a50ec93cd4d2f5fa3f5d9bf
/* transmit result */
_INFO("MSG_REQUEST_TRANSMIT");
- if (msg->error == 0 &&
- ResponseHelper::getStatus(msg->data) == 0)
- {
- /* store select response */
- if (msg->data.getAt(1) == APDUCommand::INS_SELECT_FILE)
- channel->setSelectResponse(msg->data);
- }
-
if (msg->isSynchronousCall() == true) /* synchronized call */
{
/* sync call */
_DBG("command [%d] : %s", command.getLength(), command.toString());
ret = terminal->transmitSync(command, result);
- if (ret == 0 && ResponseHelper::getStatus(result) == 0)
- {
- /* store select response */
- if (helper.getINS() == APDUCommand::INS_SELECT_FILE)
- setSelectResponse(result);
- }
return ret;
}