]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: Fill snapshot argument in remoteDomainSnapshotListAllChildren
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Aug 2012 09:45:12 +0000 (11:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 3 Aug 2012 10:56:15 +0000 (12:56 +0200)
The remote driver did not fill the required snapshot parent argument in
the RPC call structure that caused a client crash when trying to use
this new API.

src/remote/remote_driver.c

index b9e2127e9c3b52feaba2ac9d018513bd95784e0f..afd367bea65ecea0be5acd002be9075ff285bb43 100644 (file)
@@ -5015,6 +5015,7 @@ remoteDomainSnapshotListAllChildren(virDomainSnapshotPtr parent,
 
     args.need_results = !!snapshots;
     args.flags = flags;
+    make_nonnull_domain_snapshot(&args.snapshot, parent);
 
     memset(&ret, 0, sizeof(ret));
     if (call (parent->domain->conn,