aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tls-verifier.c
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2010-12-24 23:32:35 +0800
committerStef Walter <stefw@collabora.co.uk>2010-12-24 23:32:35 +0800
commit72a3058937bee67024b9bf87ff50f73409109c63 (patch)
tree37677843e0099cb25604dc540b5a8b0c26a31ebd /libempathy/empathy-tls-verifier.c
parent36c700d49ac25f40e7ce47784fdf199c17ae8261 (diff)
downloadgsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar.gz
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar.bz2
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar.lz
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar.xz
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.tar.zst
gsoc2013-empathy-72a3058937bee67024b9bf87ff50f73409109c63.zip
libempathy: Fix free of uninitialized variables.
When a pinned certificate is present, these don't get initialized.
Diffstat (limited to 'libempathy/empathy-tls-verifier.c')
-rw-r--r--libempathy/empathy-tls-verifier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 057c412f5..2f98d9364 100644
--- a/libempathy/empathy-tls-verifier.c
+++ b/libempathy/empathy-tls-verifier.c
@@ -260,6 +260,9 @@ perform_verification (EmpathyTLSVerifier *self,
DEBUG ("Performing verification");
debug_certificate_chain (chain);
+ list = anchors = NULL;
+ n_list = n_anchors = 0;
+
/*
* If the first certificate is an pinned certificate then we completely
* ignore the rest of the verification process.