]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
In print_crl(), initialize aki_idx and crl_nr once before entering the for loop inste...
authorFabian Keil <fk@fabiankeil.de>
Mon, 24 Aug 2009 16:59:13 +0000 (18:59 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 31 Aug 2009 10:29:34 +0000 (12:29 +0200)
Otherwise the "error: more than one AKI extension\n" and
"error: more than one CRL number\n" checks want work.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
lib/x509/output.c

index c04beb1cdea2f6c2b2fcdf16a5bb55b0f15296ef..fa2844fcc4b5eb1c20317fcd34eb79cffe2c4390 100644 (file)
@@ -1555,14 +1555,14 @@ print_crl (gnutls_string * str, gnutls_x509_crl_t crl, int notsigned)
     {
       size_t i;
       int err = 0;
+      int aki_idx = 0;
+      int crl_nr = 0;
 
       for (i = 0;; i++)
        {
          char oid[MAX_OID_SIZE] = "";
          size_t sizeof_oid = sizeof (oid);
          int critical;
-         int crl_nr = 0;
-         int aki_idx = 0;
 
          err = gnutls_x509_crl_get_extension_info (crl, i,
                                                    oid, &sizeof_oid,