]> git.ipfire.org Git - thirdparty/strongswan.git/commit
credential-factory: Avoid deadlock during unit tests 2850-keygen-timeout
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Aug 2025 08:16:31 +0000 (10:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Aug 2025 08:16:31 +0000 (10:16 +0200)
commit15e03c539bc32ccdc37bede6a9f771279b168379
tree020bb6cfeef1fe5c0dab321a4e66182a131a9c0c
parentff06159099771b46e0154d3b51c7da3671d1c9c8
credential-factory: Avoid deadlock during unit tests

If a unit test times out while generating a private key (e.g. because of
a lack of entropy), this avoids a deadlock by still releasing the read
lock that'd prevent acquiring the write lock when plugins are unloaded.
src/libstrongswan/credentials/credential_factory.c