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>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
commit450157c487d230a1dc571e6fe59422ac15ffbd9c
tree27e219070e430383b786ca6587cddd1346ae2d75
parentf59289113a43040907eb85592bae0b14d4e401b4
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