From: Peter Krempa Date: Wed, 4 Jul 2012 08:58:39 +0000 (+0200) Subject: remote: Fill remote parameters in remoteDomainListAllSnapshots() X-Git-Tag: CVE-2012-3445~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d59e10338d97bd7e842c83551067aa26d685bdc9;p=thirdparty%2Flibvirt.git remote: Fill remote parameters in remoteDomainListAllSnapshots() This patch fills the domain argument that is sent to the remote side. This caused a client segfault as the argument was NULL. --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 6f53264530..eac50e6347 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4888,6 +4888,7 @@ remoteDomainListAllSnapshots(virDomainPtr dom, remoteDriverLock(priv); + make_nonnull_domain(&args.dom, dom); args.need_results = !!snapshots; args.flags = flags;