scd: Relax a condition for p15 driver.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Apr 2017 03:59:29 +0000 (12:59 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Apr 2017 03:59:29 +0000 (12:59 +0900)
* scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-p15.c

index 68e8c4f..f0bcdf4 100644 (file)
@@ -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;