From e04b713c4a14b7accff86fe57ca78cb4cd5e0e46 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 11 Aug 2010 19:44:08 +0200 Subject: Use the right index to access the cert array. --- libempathy/empathy-tls-verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c index 55688f99c..75943bfbd 100644 --- a/libempathy/empathy-tls-verifier.c +++ b/libempathy/empathy-tls-verifier.c @@ -236,7 +236,7 @@ real_start_verification (EmpathyTLSVerifier *self) if (priv->trusted_ca_list->len > 0) { res = verify_last_certificate (self, - g_ptr_array_index (priv->cert_chain, num_certs), + g_ptr_array_index (priv->cert_chain, num_certs - 1), &reason); } -- cgit v1.2.3