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