]> git.0d.be Git - empathy.git/commitdiff
Use the right index to access the cert array.
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Wed, 11 Aug 2010 17:44:08 +0000 (19:44 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 13 Aug 2010 14:22:23 +0000 (16:22 +0200)
libempathy/empathy-tls-verifier.c

index 55688f99ceb3a3731bac944bbd45901540d58423..75943bfbdeb1b83c9d883019235d1ce6e6b8ebdd 100644 (file)
@@ -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);
     }