diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 4279b9425c..0f20b95014 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -9565,6 +9565,7 @@ virDomainManagedSaveDefineXML(virDomainPtr domain, const char *dxml, virCheckDomainReturn(domain, -1); conn = domain->conn; + virCheckReadOnlyGoto(conn->flags, error); if (conn->driver->domainManagedSaveDefineXML) { int ret;