]> git.ipfire.org Git - thirdparty/strongswan.git/commit
credential-factory: Avoid deadlock during unit tests
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Aug 2025 08:16:31 +0000 (10:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 21 Aug 2025 14:13:24 +0000 (16:13 +0200)
commit4c85b9d21b68ef3fbe2e17278f0cd9f18f9e432e
tree901d863d64c2a6382c9cf0590aa1211c02c1ecbc
parent135ed6aadac76bd69911f1c3b031a357dfe68d38
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.

Closes strongswan/strongswan#2850
src/libstrongswan/credentials/credential_factory.c