]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virnetttlcontext: Resolve issues found by Valgrind
authorJohn Ferlan <jferlan@redhat.com>
Mon, 4 Feb 2013 21:39:43 +0000 (16:39 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2013 19:08:14 +0000 (14:08 -0500)
Need to initialize 'usage' and 'critical' since the VIR_DEBUG will
attempt to use them.

src/rpc/virnettlscontext.c

index 3e7e5e02cc4e5c06143d9f10690a0442c29eaf8b..6665268f3c2cf1eeebb45e915c001b766fa40093 100644 (file)
@@ -217,8 +217,8 @@ static int virNetTLSContextCheckCertKeyUsage(gnutls_x509_crt_t cert,
                                              bool isCA)
 {
     int status;
-    unsigned int usage;
-    unsigned int critical;
+    unsigned int usage = 0;
+    unsigned int critical = 0;
 
     status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical);