mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd:p15: Fix the the sanity check of the displayed S/N.
* scd/app-p15.c (any_control_or_space): Fix loop. -- This check is only done to avoid printing wrongly encoded S/N for human consumption. e
This commit is contained in:
parent
054d14887e
commit
6f612fd5f6
@ -481,7 +481,7 @@ struct app_local_s
|
||||
unsigned short auth_objects;
|
||||
} odf;
|
||||
|
||||
/* The PKCS#15 serialnumber from EF(TokeiNFo) or NULL. Malloced. */
|
||||
/* The PKCS#15 serialnumber from EF(TokenInfo) or NULL. Malloced. */
|
||||
unsigned char *serialno;
|
||||
size_t serialnolen;
|
||||
|
||||
@ -5003,7 +5003,11 @@ any_control_or_space (const char *string)
|
||||
{
|
||||
const unsigned char *s;
|
||||
|
||||
for (s = string; *string; string++)
|
||||
for (s = string; *s; s++)
|
||||
if (*s <= 0x20 || *s >= 0x7f)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
if (*s <= 0x20 || *s >= 0x7f)
|
||||
return 1;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user