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