From dba64ce7f5668f66cfcbc640a745e166d8edd932 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 30 Sep 2013 21:15:35 -0700 Subject: [PATCH] Increment array when comparing, from Harald Barth --- lib/hx509/revoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/revoke.c b/lib/hx509/revoke.c index 019e6bb76..4b53a6fc7 100644 --- a/lib/hx509/revoke.c +++ b/lib/hx509/revoke.c @@ -653,7 +653,7 @@ hx509_revoke_add_crl(hx509_context context, path += 5; for (i = 0; i < ctx->crls.len; i++) { - if (strcmp(ctx->crls.val[0].path, path) == 0) + if (strcmp(ctx->crls.val[i].path, path) == 0) return 0; }