crypto: clear err stack after ECDH::BufferToPoint · nodejs/node@8f8dd97 · GitHub
Skip to content

Commit 8f8dd97

Browse files
rfkMylesBorins
authored andcommitted
crypto: clear err stack after ECDH::BufferToPoint
Functions that call `ECDH::BufferToPoint` were not clearing the error stack on failure, so an invalid key could leave leftover error state and cause subsequent (unrelated) signing operations to fail. PR-URL: #13275 Backport-PR-URL: #13397 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 55cbe24 commit 8f8dd97

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/node_crypto.cc

Lines changed: 4 additions & 0 deletions

test/parallel/test-crypto-dh.js

Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)