]> xenbits.xensource.com Git - libvirt.git/commit
fix a bug of ref count in virnetserver.c
authorHu Tao <hutao@cn.fujitsu.com>
Fri, 22 Jun 2012 03:26:03 +0000 (11:26 +0800)
committerJim Fehlig <jfehlig@suse.com>
Fri, 22 Jun 2012 18:13:42 +0000 (12:13 -0600)
commit9c77bf04b03ff026bb37212a195070d8983f530d
tree622de3e01f5c0f3a2dfc89bfd00d04618ff53f19
parentde924ca90a0ff1ad8adeab460761f65b7a742d72
fix a bug of ref count in virnetserver.c

The test of ref count is not protected by lock, which is unsafe because
the ref count may have been changed by other threads during the test.

This patch fixes this.
src/rpc/virnetserver.c