aboutsummaryrefslogtreecommitdiffstats
path: root/scd/sc-copykeys.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/sc-copykeys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/sc-copykeys.c b/scd/sc-copykeys.c
index 6a6c0e0d3..275bcf877 100644
--- a/scd/sc-copykeys.c
+++ b/scd/sc-copykeys.c
@@ -142,6 +142,8 @@ main (int argc, char **argv )
slot = apdu_open_reader (reader_port);
if (slot == -1)
exit (1);
+ if (apdu_connect (slot))
+ exit (1);
/* FIXME: Use select_application. */
appbuf.slot = slot;