scd: Handle error correctly.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 28 Sep 2015 04:41:59 +0000 (13:41 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Nov 2016 07:55:49 +0000 (16:55 +0900)
commitaf7245e9a79d11866aa9c40f8f53291f82dd74b5
treea9ff891e144772c2d92b7370b49c1ad5b67a9a7e
parenta6f7c8d9b70daba319d24d930be056618cbad61b
scd: Handle error correctly.

* scd/apdu.c (apdu_connect): Initialize variables and check an error
of apdu_get_status_internal.

--
Backport from master commit: 6bb7206e357acfd7276a8f1334c0f0c9cc6ed100
scd/apdu.c