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