mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
virnetttlcontext: Resolve issues found by Valgrind
Need to initialize 'usage' and 'critical' since the VIR_DEBUG will attempt to use them.
This commit is contained in:
parent
9442d03c48
commit
2792ad143e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user