- fixed exit code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@429 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ae8e3908c4
commit
5d687de06f
|
@ -269,7 +269,7 @@ done: if (r < 0) {
|
|||
sc_disconnect_card(card, 0);
|
||||
}
|
||||
sc_release_context(ctx);
|
||||
return r? 1 : 0;
|
||||
return r < 0? 1 : 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue