]> xenbits.xensource.com Git - libvirt.git/commit
rpc: avoid uninitialized memory use
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 15:56:10 +0000 (09:56 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 17:57:06 +0000 (11:57 -0600)
commit3157d78f52e27f704058f1f9b19276ea1d47b3cb
tree96dbc144c2d97c1e4954d315e92c4a911efb16a6
parent50ae1de27c34957c087888a33230d027d404bf13
rpc: avoid uninitialized memory use

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