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