]> git.0d.be Git - empathy.git/commitdiff
libempathy: Fix free of uninitialized variables.
authorStef Walter <stefw@collabora.co.uk>
Fri, 24 Dec 2010 15:32:35 +0000 (09:32 -0600)
committerStef Walter <stefw@collabora.co.uk>
Fri, 24 Dec 2010 15:32:35 +0000 (09:32 -0600)
When a pinned certificate is present, these don't get initialized.

libempathy/empathy-tls-verifier.c

index 057c412f526aa59a9146929c6781dd1f4fd7dfec..2f98d9364815c1505d69c2e6b4adab69af0bfc08 100644 (file)
@@ -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.