]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add mutex protection to SASL and TLS modules v0.9.4-rc1
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 26 Jul 2011 00:21:32 +0000 (08:21 +0800)
committerDaniel Veillard <veillard@redhat.com>
Tue, 26 Jul 2011 00:21:32 +0000 (08:21 +0800)
commit5622830c53b3a78e13c2ff722ebbba6e9c198378
tree1d03c7355ec3ff02efb25ecd0898032216fa724a
parenta44585972a16ecd4eddcb6528fe654049bb4fb34
Add mutex protection to SASL and TLS modules

The virNetSASLContext, virNetSASLSession, virNetTLSContext and
virNetTLSSession classes previously relied in their owners
(virNetClient / virNetServer / virNetServerClient) to provide
locking protection for concurrent usage. When virNetSocket
gained its own locking code, this invalidated the implicit
safety the SASL/TLS modules relied on. Thus we need to give
them all explicit locking of their own via new mutexes.

* src/rpc/virnetsaslcontext.c, src/rpc/virnettlscontext.c: Add
  a mutex per object
src/rpc/virnetsaslcontext.c
src/rpc/virnettlscontext.c