tls_wrap: clear errors on return
authorFedor Indutny <fedor@indutny.com>
Sun, 3 Jan 2016 04:05:40 +0000 (23:05 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:41 +0000 (11:52 -0800)
commit4d37472ea74c919aa86b84b86b59de6fa6d78306
treeef9cc195fa8a6900b11c54a5d025aa1c3fa98b5d
parent5f4aa794107b949b3fa88a680c6d5ac43ff784b3
tls_wrap: clear errors on return

Adopt `MarkPopErrorOnReturn` from `node_crypto.cc`, and use it to
clear errors after `SSL_read`/`SSL_write`/`SSL_shutdown` functions.

See: https://github.com/nodejs/node/issues/4485
PR-URL: https://github.com/nodejs/node/pull/4515
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v4.x-staging Commit Metadata:
PR-URL: https://github.com/nodejs/node/pull/4709
Reviewed-By: James M Snell <jasnell@gmail.com>
src/node_crypto.cc
src/node_crypto.h
src/tls_wrap.cc