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