tls: always reset this.ssl.error after handling
authorFedor Indutny <fedor.indutny@gmail.com>
Wed, 20 Mar 2013 13:35:38 +0000 (17:35 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 20 Mar 2013 13:58:01 +0000 (17:58 +0400)
commit34e22b8ee742b4529c6982f8631fc07522d8197f
tree9504c729ccd4d70643cf7c5ba2113f5ac0256681
parent25eaacad9a14c27465dc65e15e3a5eb5544031e6
tls: always reset this.ssl.error after handling

Otherwise assertion may happen:

    src/node_crypto.cc:962: void node::crypto::Connection::ClearError():
    Assertion `handle_->Get(String::New("error"))->BooleanValue() == false'
    failed.

See #5058
lib/tls.js