1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-10 23:49:50 +02:00

scd:openpgp: Support GET DATA response with no header for DO 0x00FA.

* scd/app-openpgp.c (do_getattr): Support Gnuk, as well.
--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit 43bbc25b0f)
This commit is contained in:
NIIBE Yutaka 2020-09-04 17:16:59 +09:00 committed by Werner Koch
parent c4eada0787
commit 3d368c1a7d
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1213,8 +1213,8 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name)
if (valuelen < 2)
return gpg_error (GPG_ERR_INV_OBJ);
tag = *p++;
len = *p++;
tag = p[0];
len = p[1];
/* Does it comes tag+len at the head? */
if (tag == 0x00FA)