diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc index d17ee21e78..d69eeb8f9b 100644 --- a/src/node_crypto_bio.cc +++ b/src/node_crypto_bio.cc @@ -279,7 +279,7 @@ void NodeBIO::Write(const char* data, size_t size) { // Go to next buffer if there still are some bytes to write if (left != 0) { - if (write_head_->next_->write_pos_ == kBufferLength) { + if (write_head_->write_pos_ == kBufferLength) { Buffer* next = new Buffer(); next->next_ = write_head_->next_; write_head_->next_ = next;