fix lock/unlock mismatch

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2100 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2005-01-24 22:10:55 +00:00
parent d4f2e2363f
commit 32e5d3fc81
1 changed files with 1 additions and 1 deletions

View File

@ -283,8 +283,8 @@ int sc_transmit_apdu(struct sc_card *card, struct sc_apdu *apdu)
SC_FUNC_RETURN(card->ctx, 2, SC_ERROR_NOT_SUPPORTED);
}
r = card->ops->get_response(card, apdu, le);
sc_unlock(card);
if (r < 0) {
sc_unlock(card);
SC_FUNC_RETURN(card->ctx, 2, r);
}
else