diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2010-08-12 01:44:08 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-08-13 22:22:23 +0800 |
commit | e04b713c4a14b7accff86fe57ca78cb4cd5e0e46 (patch) | |
tree | 9931dfd521117d4c34c127669d3d6491b625532f | |
parent | 5c313ddb2557218b7ccd4b3dd13dc1aad3834506 (diff) | |
download | gsoc2013-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.c | 2 |
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); } |