scd: Use app_get_serialno for app_getattr.

* scd/app.c (app_getattr): Use app_get_serialno.

--

GnuPG-bug-id: 5100
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-10-23 15:25:07 +09:00
parent 65c91e601a
commit c8cc35dd2c
1 changed files with 1 additions and 1 deletions

View File

@ -1544,7 +1544,7 @@ app_getattr (card_t card, ctrl_t ctrl, const char *name)
{
char *serial;
serial = card_get_serialno (card);
serial = app_get_serialno (card->app);
if (!serial)
err = gpg_error (GPG_ERR_INV_VALUE);
else