diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index bef68a415e..27f92be5c7 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;