[empathy] libempathy: Fix free of uninitialized variables.



commit 72a3058937bee67024b9bf87ff50f73409109c63
Author: Stef Walter <stefw collabora co uk>
Date:   Fri Dec 24 09:32:35 2010 -0600

    libempathy: Fix free of uninitialized variables.
    
    When a pinned certificate is present, these don't get initialized.

 libempathy/empathy-tls-verifier.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index 057c412..2f98d93 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]