From: Fabian Keil Date: Mon, 24 Aug 2009 16:59:13 +0000 (+0200) Subject: In print_crl(), initialize aki_idx and crl_nr once before entering the for loop inste... X-Git-Tag: gnutls_2_9_4~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=978781f3ae7c5fb5deac03df615eedbda8783c3c;p=thirdparty%2Fgnutls.git In print_crl(), initialize aki_idx and crl_nr once before entering the for loop instead of each run. 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 --- diff --git a/lib/x509/output.c b/lib/x509/output.c index c04beb1cde..fa2844fcc4 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -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,