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