(gpgsm_validate_chain): The trust check didn't
authorWerner Koch <wk@gnupg.org>
Tue, 20 Jul 2004 07:06:36 +0000 (07:06 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 20 Jul 2004 07:06:36 +0000 (07:06 +0000)
worked anymore, probably due to the changes at 2003-03-04.  Fixed.

sm/ChangeLog
sm/certchain.c

index c1a8f64..5571540 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-20  Werner Koch  <wk@gnupg.org>
+
+       * certchain.c (gpgsm_validate_chain): The trust check didn't
+       worked anymore, probably due to the changes at 2003-03-04.  Fixed.
+
 2004-06-06  Werner Koch  <wk@gnupg.org>
 
        * certreqgen.c (get_parameter_uint, create_request): Create
index 3009c21..8d54767 100644 (file)
@@ -701,6 +701,9 @@ gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert, ksba_isotime_t r_exptime,
                          gpg_strerror (rc));
             }
           
+          if (rc)
+            goto leave;
+
           /* Check for revocations etc. */
           if ((flags & 1))
             rc = 0;