]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: Fill remote parameters in remoteDomainListAllSnapshots()
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jul 2012 08:58:39 +0000 (10:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jul 2012 09:16:47 +0000 (11:16 +0200)
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

index 6f53264530bdc2974c84cef2b277fae7144d2d8f..eac50e634778b77da610f07464bbb09532576689 100644 (file)
@@ -4888,6 +4888,7 @@ remoteDomainListAllSnapshots(virDomainPtr dom,
 
     remoteDriverLock(priv);
 
+    make_nonnull_domain(&args.dom, dom);
     args.need_results = !!snapshots;
     args.flags = flags;