agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 2 Nov 2017 07:23:10 +0000 (16:23 +0900)
committerWerner Koch <wk@gnupg.org>
Thu, 2 Nov 2017 16:04:03 +0000 (17:04 +0100)
commit3da47d19df89d302c0ea25921f4bd8ce55705afe
treea626358c257260e377df69340c824208c597f356
parent0e5bd473a07f188615c4fce26b73bb452d689d68
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>
(cherry picked from commit 5e96fe72e477d09e35ccee48af0fd9ab2b3ae409)
agent/learncard.c