crypto: initialize KeyObjectData mutex eagerly · nodejs/node@edc1f21 · GitHub
Skip to content

Commit edc1f21

Browse files
panvaaduh95
authored andcommitted
crypto: initialize KeyObjectData mutex eagerly
Create the mutex before sharing key data so every copy uses one lock. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64851 Backport-PR-URL: #65087 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent be82372 commit edc1f21

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/crypto/crypto_keys.cc

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)