diff options
author | NIIBE Yutaka <[email protected]> | 2017-04-10 03:59:29 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-04-10 03:59:29 +0000 |
commit | 3c1ad96f1ce838daf2d861b33e6611f6d3043d25 (patch) | |
tree | 4e86664df31b8c5fccd1201ccee8a1a641b0078f | |
parent | scd: Remove "special transport" support. (diff) | |
download | gnupg-3c1ad96f1ce838daf2d861b33e6611f6d3043d25.tar.gz gnupg-3c1ad96f1ce838daf2d861b33e6611f6d3043d25.zip |
scd: Relax a condition for p15 driver.
* scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | scd/app-p15.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c index 68e8c4faa..f0bcdf4ac 100644 --- a/scd/app-p15.c +++ b/scd/app-p15.c @@ -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; |