aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2010-08-12 01:44:08 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-13 22:22:23 +0800
commite04b713c4a14b7accff86fe57ca78cb4cd5e0e46 (patch)
tree9931dfd521117d4c34c127669d3d6491b625532f
parent5c313ddb2557218b7ccd4b3dd13dc1aad3834506 (diff)
downloadgsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar.gz
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar.bz2
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar.lz
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar.xz
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.tar.zst
gsoc2013-empathy-e04b713c4a14b7accff86fe57ca78cb4cd5e0e46.zip
Use the right index to access the cert array.
-rw-r--r--libempathy/empathy-tls-verifier.c2
1 files changed, 1 insertions, 1 deletions
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);
}