summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2009-08-24 18:59:13 +0200
committerSimon Josefsson <simon@josefsson.org>2009-08-31 12:29:34 +0200
commit978781f3ae7c5fb5deac03df615eedbda8783c3c (patch)
tree2f90ff1454be6a47ed463985a3277e021b5fae6b
parent2807d80e446538357bd40a2365ec164cc93bdee4 (diff)
downloadgnutls-978781f3ae7c5fb5deac03df615eedbda8783c3c.tar.gz
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 <simon@josefsson.org>
-rw-r--r--lib/x509/output.c4
1 files changed, 2 insertions, 2 deletions
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,