diff options
author | NIIBE Yutaka <[email protected]> | 2017-01-26 10:32:51 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-01-26 10:32:51 +0000 |
commit | 9b06633c811e8815c07d744f20b45405cb082367 (patch) | |
tree | f9ce2663392e4a80f1be39c09b246d7036146060 /scd/command.c | |
parent | scd: Add INTERRUPT endp support to CCID driver. (diff) | |
download | gnupg-9b06633c811e8815c07d744f20b45405cb082367.tar.gz gnupg-9b06633c811e8815c07d744f20b45405cb082367.zip |
scd: Fix APP reference counting.
* scd/app.c (scd_update_reader_status_file): Don't call another
release_application_internal.
* scd/command.c (open_card_with_request): Don't require APPTYPE !=
NULL.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | scd/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/command.c b/scd/command.c index 8c7ca20a6..26f8630fb 100644 --- a/scd/command.c +++ b/scd/command.c @@ -221,7 +221,7 @@ open_card_with_request (ctrl_t ctrl, const char *apptype, const char *serialno) /* If we are already initialized for one specific application we need to check that the client didn't requested a specific application different from the one in use before we continue. */ - if (apptype && ctrl->app_ctx) + if (ctrl->app_ctx) return check_application_conflict (apptype, ctrl->app_ctx); if (serialno) |