src: don't check failure with ERR_peek_error()
authorBen Noordhuis <info@bnoordhuis.nl>
Sun, 17 Jan 2016 16:18:37 +0000 (17:18 +0100)
committerMyles Borins <mborins@us.ibm.com>
Mon, 15 Feb 2016 19:30:23 +0000 (11:30 -0800)
commitc41ed59dbcf63e7679abf69cfa01cde484fcd2a7
tree28e380d0fa9c187c80b69afc27dc3b95d607d2d8
parent188cff3c314feee85ac1e38cdb72393c889119e1
src: don't check failure with ERR_peek_error()

It's possible there is already an existing error on OpenSSL's error
stack that is unrelated to the EVP_DigestInit_ex() operation we just
executed.

Fixes: https://github.com/nodejs/node/issues/4221
PR-URL: https://github.com/nodejs/node/pull/4731
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
src/node_crypto.cc