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