1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-19 00:52:46 +02:00

gpg: Fix regression not displaying the card serial number

* g10/call-agent.c (keyinfo_status_cb): Detect KEYINFO.
--

This regression is due to
commit 585d5c62ee
from February 2013!

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2015-05-07 11:54:34 +02:00
parent 154abaf3c9
commit 173b26c8f8
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1626,7 +1626,7 @@ keyinfo_status_cb (void *opaque, const char *line)
char **serialno = opaque; char **serialno = opaque;
const char *s, *s2; const char *s, *s2;
if ((s = has_leading_keyword (line, "KEYINFO ")) && !*serialno) if ((s = has_leading_keyword (line, "KEYINFO")) && !*serialno)
{ {
s = strchr (s, ' '); s = strchr (s, ' ');
if (s && s[1] == 'T' && s[2] == ' ' && s[3]) if (s && s[1] == 'T' && s[2] == ' ' && s[3])