mirror of https://gitee.com/openkylin/libvirt.git
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