mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 14:05:18 +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)
|
bool isCA)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
unsigned int usage;
|
unsigned int usage = 0;
|
||||||
unsigned int critical;
|
unsigned int critical = 0;
|
||||||
|
|
||||||
status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical);
|
status = gnutls_x509_crt_get_key_usage(cert, &usage, &critical);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user