[PATCH] remote: Fill snapshot argument in remoteDomainSnapshotListAllChildren

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index b9e2127..afd367b 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -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,
-- 
1.7.8.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]