[empathy: 21/65] Use the right index to access the cert array.



commit e04b713c4a14b7accff86fe57ca78cb4cd5e0e46
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Wed Aug 11 19:44:08 2010 +0200

    Use the right index to access the cert array.

 libempathy/empathy-tls-verifier.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 55688f9..75943bf 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);
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]