diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc index 389d2815933..9d566fd6f3d 100644 --- a/src/node_crypto_bio.cc +++ b/src/node_crypto_bio.cc @@ -226,6 +226,11 @@ void NodeBIO::FreeEmpty() { return; while (cur != read_head_) { + // Skip embedded buffer + if (cur == &head_) { + cur = head_.next_; + continue; + } assert(cur != write_head_); assert(cur->write_pos_ == cur->read_pos_);