Diff

Differences From Artifact [6b202c653c]:

To Artifact [831193de85]:


   839    839    */
   840    840   static void cackey_mark_slot_reset(struct cackey_slot *slot) {
   841    841   	if (slot == NULL) {
   842    842   		return;
   843    843   	}
   844    844   
   845    845   	CACKEY_DEBUG_PRINTF("Called.");
          846  +
          847  +	if (slot->pcsc_card_connected) {
          848  +		SCardDisconnect(slot->pcsc_card, SCARD_LEAVE_CARD);
          849  +	}
   846    850   
   847    851   	slot->slot_reset = 1;
   848    852   	slot->pcsc_card_connected = 0;
   849    853   	slot->token_flags = CKF_LOGIN_REQUIRED;
   850    854   
   851    855   	CACKEY_DEBUG_PRINTF("Returning.");
   852    856