mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01:00
scd: Relax a condition for p15 driver.
* scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
34199ef677
commit
3c1ad96f1c
@ -1823,7 +1823,7 @@ read_ef_aodf (app_t app, unsigned short fid, aodf_object_t *result)
|
||||
if (!err && (objlen > nn
|
||||
|| class != CLASS_UNIVERSAL || tag != TAG_ENUMERATED))
|
||||
err = gpg_error (GPG_ERR_INV_OBJ);
|
||||
if (!err && (objlen > sizeof (pin_type_t) || objlen > sizeof (ul)))
|
||||
if (!err && || objlen > sizeof (ul))
|
||||
err = gpg_error (GPG_ERR_UNSUPPORTED_ENCODING);
|
||||
if (err)
|
||||
goto parse_error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user