domain_conf: fix domain deadlock CVE-2014-3657
authorPavel Hrdina <phrdina@redhat.com>
Mon, 22 Sep 2014 16:19:07 +0000 (18:19 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 1 Oct 2014 08:22:02 +0000 (16:22 +0800)
commitfc22b2e74890873848b43fffae43025d22053669
tree6660126b21cef9976403c1972f04abd80ce598af
parentfe808d95bf353647bb39b3bc468f5a841b5588dd
domain_conf: fix domain deadlock

If you use public api virConnectListAllDomains() with second parameter
set to NULL to get only the number of domains you will lock out all
other operations with domains.

Introduced by commit 2c680804.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c