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