diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index f72cc34cc5..79a90459f7 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -11077,6 +11077,7 @@ virConnectGetDomainCapabilities(virConnectPtr conn, virResetLastError(); virCheckConnectReturn(conn, NULL); + virCheckReadOnlyGoto(conn->flags, error); if (conn->driver->connectGetDomainCapabilities) { char *ret;