diff options
author | Diana Holland <diana.holland@moovel.com> | 2018-10-12 11:36:17 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-15 02:45:54 +0200 |
commit | 98afca92a9d035a6191fd05e8013a6fc36a78539 (patch) | |
tree | 926292a5ea8609b1f040a965c47154fd765c3991 /src/node_crypto_clienthello-inl.h | |
parent | ea9df8b4a48f70cdd86c81d9e20b72d4be1bcd73 (diff) | |
download | android-node-v8-98afca92a9d035a6191fd05e8013a6fc36a78539.tar.gz android-node-v8-98afca92a9d035a6191fd05e8013a6fc36a78539.tar.bz2 android-node-v8-98afca92a9d035a6191fd05e8013a6fc36a78539.zip |
crypto: move field initialization to class
PR-URL: https://github.com/nodejs/node/pull/23610
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to 'src/node_crypto_clienthello-inl.h')
-rw-r--r-- | src/node_crypto_clienthello-inl.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/node_crypto_clienthello-inl.h b/src/node_crypto_clienthello-inl.h index c5c595c760..9de8f2e5fc 100644 --- a/src/node_crypto_clienthello-inl.h +++ b/src/node_crypto_clienthello-inl.h @@ -34,14 +34,7 @@ inline ClientHelloParser::ClientHelloParser() : state_(kEnded), onhello_cb_(nullptr), onend_cb_(nullptr), - cb_arg_(nullptr), - session_size_(0), - session_id_(nullptr), - servername_size_(0), - servername_(nullptr), - ocsp_request_(0), - tls_ticket_size_(0), - tls_ticket_(nullptr) { + cb_arg_(nullptr) { Reset(); } |