scd: Relax a condition for p15 driver.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Apr 2017 04:18:30 +0000 (13:18 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 10 Apr 2017 04:18:30 +0000 (13:18 +0900)
* scd/app-p15.c (read_ef_aodf): Fix.

--

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

index f0bcdf4..0bb5f9e 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 (ul))
+      if (!err && objlen > sizeof (ul))
         err = gpg_error (GPG_ERR_UNSUPPORTED_ENCODING);
       if (err)
         goto parse_error;