[libvirt] [PATCH 2/3] rpc: avoid uninitialized memory use

2011-08-02 Thread Eric Blake
Spotted by Coverity. Gnutls documents that buffer must be NULL if gnutls_x509_crt_get_key_purpose_oid is to be used to determine the correct size needed for allocating a buffer. * src/rpc/virnettlscontext.c (virNetTLSContextCheckCertKeyPurpose): Initialize buffer. --- src/rpc/virnettlscontext.c

Re: [libvirt] [PATCH 2/3] rpc: avoid uninitialized memory use

2011-08-02 Thread Laine Stump
On 08/02/2011 12:12 PM, Eric Blake wrote: Spotted by Coverity. Gnutls documents that buffer must be NULL if gnutls_x509_crt_get_key_purpose_oid is to be used to determine the correct size needed for allocating a buffer. * src/rpc/virnettlscontext.c (virNetTLSContextCheckCertKeyPurpose):