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