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:
parent
d4f2e2363f
commit
32e5d3fc81
@ -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);
|
SC_FUNC_RETURN(card->ctx, 2, SC_ERROR_NOT_SUPPORTED);
|
||||||
}
|
}
|
||||||
r = card->ops->get_response(card, apdu, le);
|
r = card->ops->get_response(card, apdu, le);
|
||||||
sc_unlock(card);
|
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
sc_unlock(card);
|
||||||
SC_FUNC_RETURN(card->ctx, 2, r);
|
SC_FUNC_RETURN(card->ctx, 2, r);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user