[libvirt] [PATCH] remote: Fill remote parameters in remoteDomainListAllSnapshots()

Peter Krempa pkrempa at redhat.com
Wed Jul 4 09:01:01 UTC 2012


This patch fills the domain argument that is sent to the remote side.
This caused a client segfault as the argument was NULL.
---
 src/remote/remote_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 6f53264..eac50e6 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;

-- 
1.7.8.6




More information about the libvir-list mailing list