diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-08-19 20:34:34 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-08-19 20:34:34 +0400 |
commit | 306f86343849401ea8b4c5e9e049d0f82286b782 (patch) | |
tree | 63b438310c86e309deae8e6106e43f35416c4a23 | |
parent | b9a0eb0688104f3619e75e1b9a698080e10d1ec7 (diff) | |
download | node-306f86343849401ea8b4c5e9e049d0f82286b782.tar.gz |
crypto: don't touch ssl_ in Connection
`ssl_` is a property of SSLWrap class, don't touch it, and definitely
don't zero it in constructor.
-rw-r--r-- | src/node_crypto.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index 56055a93b..2d2b00a32 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -267,7 +267,6 @@ class Connection : public SSLWrap<Connection>, public ObjectWrap { : SSLWrap<Connection>(sc, kind), hello_offset_(0) { bio_read_ = bio_write_ = NULL; - ssl_ = NULL; hello_parser_.Start(SSLWrap<Connection>::OnClientHello, OnClientHelloParseEnd, this); @@ -275,11 +274,6 @@ class Connection : public SSLWrap<Connection>, public ObjectWrap { } ~Connection() { - if (ssl_ != NULL) { - SSL_free(ssl_); - ssl_ = NULL; - } - #ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB sniObject_.Dispose(); sniContext_.Dispose(); |