diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 75793277da9c9e0f346d45d818f9512f483b1460..9a42e3496f5b5d95f2d24c16c618aa51980486ac 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -1710,6 +1710,9 @@ int virStoragePoolSourceFindDuplicate(virStoragePoolObjListPtr pools, break; } virStoragePoolObjUnlock(pool); + + if (matchpool) + break; } if (matchpool) {