From 2792ad143e29d8efd979239d5148951d5607402c Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 4 Feb 2013 16:39:43 -0500 Subject: [PATCH] virnetttlcontext: Resolve issues found by Valgrind 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 3e7e5e02cc..6665268f3c 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); -- GitLab