]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: avoid double close on error
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 15:50:54 +0000 (09:50 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 17:43:36 +0000 (11:43 -0600)
commit50ae1de27c34957c087888a33230d027d404bf13
tree75fd0ca1c75f2d8f3357883fb56c26d06be2ae11
parentd68b97c8a641ca3d56c7031eb49526174257280b
rpc: avoid double close on error

Spotted by coverity.  If pipe2 fails, then we attempt to close
uninitialized fds, which may result in a double-close.

* src/rpc/virnetserver.c (virNetServerSignalSetup): Initialize fds.
src/rpc/virnetserver.c