chiark / gitweb /
scd: Backport two fixes from master.
authorNIIBE Yutaka <gniibe@fsij.org>
Sat, 4 Feb 2017 23:34:08 +0000 (08:34 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 14 Feb 2017 00:29:34 +0000 (00:29 +0000)
commit7fe8f17ce415925413bb33f19ddb84f4f7018512
tree3d33f0dd5dd59731e544e1942baf70299bc7dd38
parent7a3c6bdcc273ca588ee4a70d48ae2b485b8c21e2
scd: Backport two fixes from master.

* scd/app.c (app_new_register): Initialize by -1, so that it can detect
an error correctly when card reader can't power-on the card initially.
* scd/command.c (open_card_with_request): Release APP before the scan.

--
The first one-liner patch handles an erroneous card.

The second patch handles the case when we repeatedly do
signing/decrypting by a single session of scdaemon.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Gbp-Pq: Name 0028-scd-Backport-two-fixes-from-master.patch
scd/app.c
scd/command.c