agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 2 Nov 2017 07:23:10 +0000 (16:23 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 2 Nov 2017 07:23:10 +0000 (16:23 +0900)
commit5e96fe72e477d09e35ccee48af0fd9ab2b3ae409
tree344b7270c5ba8fc458367adec59c48fc340f15a5
parentfd3f5ca151b9440ade2fa4991b7cfb190e357893
agent: Fix returning GPG_ERR_NOT_FOUND wrongly.

* agent/learncard.c (agent_handle_learn): Find SERIALNO.

--

Bug is: "gpg-connect-agent learn /bye" just fails wrongly.

Fixes-commit: 8c8ce8711d9c938fcb982b0341e6b052742cb887
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/learncard.c