]> 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)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 3 May 2013 09:29:07 +0000 (10:29 +0100)
commit31dbbb667f7c711a18bd106358226685674c0605
tree8d34eabe19500a6b937abc848dff7402d8c0cd3d
parent377ac10c8fc9856b129629af28b73f131a9e419c
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>
src/rpc/gendispatch.pl