rpc:fix sasl session relocking intead of unlocking it

When trying to use any SASL authentication for TCP sockets by
setting auth_tls = "sasl" in libvirtd.conf on server side, the
client will hang because of the sasl session relocking other than
dropping the lock when exiting virNetSASLSessionExtKeySize()
* src/rpc/virnetsaslcontext.c: virNetSASLSessionExtKeySize drop the
  lock on exit
This commit is contained in:
Guannan Ren 2011-08-04 21:27:52 +08:00 committed by Daniel Veillard
parent ae0dcbc413
commit 8329c56e3a
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ int virNetSASLSessionExtKeySize(virNetSASLSessionPtr sasl,
ret = 0;
cleanup:
virMutexLock(&sasl->lock);
virMutexUnlock(&sasl->lock);
return ret;
}