scd: Fix commit 9a9bfd77.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Dec 2015 00:56:08 +0000 (09:56 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Dec 2015 00:56:08 +0000 (09:56 +0900)
* scd/app.c (check_application_conflict): Get SLOT.

scd/app.c

index cbcd3e4..0f36409 100644 (file)
--- a/scd/app.c
+++ b/scd/app.c
@@ -223,6 +223,7 @@ check_conflict (int slot, const char *name)
 gpg_error_t
 check_application_conflict (ctrl_t ctrl, const char *name)
 {
+  int slot = ctrl->reader_slot;
   gpg_error_t err;
 
   if (slot < 0 || slot >= DIM (lock_table))