Re: [PATCH 09/13] virnetttlcontext: Resolve issues found by Valgrind

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

 



On 2013年02月07日 05:35, John Ferlan wrote:
Need to initialize 'usage' and 'critical' since the VIR_DEBUG will
attempt to use them.
---
  src/rpc/virnettlscontext.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c
index 3e7e5e0..6665268 100644
--- a/src/rpc/virnettlscontext.c
+++ b/src/rpc/virnettlscontext.c
@@ -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);


ACK.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]