From: Purna Pavan Chandra Aekkaladevi Date: Mon, 29 Jan 2024 12:38:21 +0000 (+0000) Subject: ch_driver: fix condition in virCHDomainRemoveInactive() X-Git-Tag: v10.1.0-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18f2bf0a43ab2154c9628245b3982e1a0184ab83;p=thirdparty%2Flibvirt.git ch_driver: fix condition in virCHDomainRemoveInactive() Rectify the condition to remove a domain only if it is not persistent. Signed-off-by: Purna Pavan Chandra Aekkaladevi Reviewed-by: Michal Privoznik --- diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c index c0d6c75b1d..2f3fae6758 100644 --- a/src/ch/ch_domain.c +++ b/src/ch/ch_domain.c @@ -36,7 +36,7 @@ void virCHDomainRemoveInactive(virCHDriver *driver, virDomainObj *vm) { - if (vm->persistent) { + if (!vm->persistent) { virDomainObjListRemove(driver->domains, vm); } }