mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
ae0dcbc413
commit
8329c56e3a
|
@ -298,7 +298,7 @@ int virNetSASLSessionExtKeySize(virNetSASLSessionPtr sasl,
|
|||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
virMutexLock(&sasl->lock);
|
||||
virMutexUnlock(&sasl->lock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue