]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix potential use of undefined variable in remote dispatch code
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 2 May 2013 11:35:47 +0000 (12:35 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 6 May 2013 20:18:23 +0000 (14:18 -0600)
commit832049ca2903db1240782e1acab0355327ee735d
treebc0c7c27dc24557338cc8acc0e818228dcf7fb72
parent6381c1c130907ec86ccbc12b4d9a38c3fbaf472d
Fix potential use of undefined variable in remote dispatch code

If an early dispatch check caused a jump to the 'cleanup' branch
then virTypeParamsFree() would be called with an uninitialized
'nparams' variable. Fortunately 'params' is initialized to NULL,
so the uninitialized 'nparams' variable would not be used.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit 31dbbb667f7c711a18bd106358226685674c0605)
src/rpc/gendispatch.pl