diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 9065dab120..9314f85062 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -8796,6 +8796,7 @@ virDomainRename(virDomainPtr dom, virResetLastError(); virCheckDomainReturn(dom, -1); virCheckNonNullArgGoto(new_name, error); + virCheckReadOnlyGoto(dom->conn->flags, error); if (dom->conn->driver->domainRename) { int ret = dom->conn->driver->domainRename(dom, new_name, flags);