summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node_crypto_clienthello-inl.h9
-rw-r--r--src/node_crypto_clienthello.h20
2 files changed, 11 insertions, 18 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();
}
diff --git a/src/node_crypto_clienthello.h b/src/node_crypto_clienthello.h
index fd8756254f..687e9589b6 100644
--- a/src/node_crypto_clienthello.h
+++ b/src/node_crypto_clienthello.h
@@ -108,16 +108,16 @@ class ClientHelloParser {
OnHelloCb onhello_cb_;
OnEndCb onend_cb_;
void* cb_arg_;
- size_t frame_len_;
- size_t body_offset_;
- size_t extension_offset_;
- uint8_t session_size_;
- const uint8_t* session_id_;
- uint16_t servername_size_;
- const uint8_t* servername_;
- uint8_t ocsp_request_;
- uint16_t tls_ticket_size_;
- const uint8_t* tls_ticket_;
+ size_t frame_len_ = 0;
+ size_t body_offset_ = 0;
+ size_t extension_offset_ = 0;
+ uint8_t session_size_ = 0;
+ const uint8_t* session_id_ = nullptr;
+ uint16_t servername_size_ = 0;
+ const uint8_t* servername_ = nullptr;
+ uint8_t ocsp_request_ = 0;
+ uint16_t tls_ticket_size_ = -1;
+ const uint8_t* tls_ticket_ = nullptr;
};
} // namespace crypto