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