diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-06-13 12:59:29 +0200 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-06-14 17:10:04 +0200 |
commit | 4536b27ac1b71e92b26c5d4ba772ae8511db09eb (patch) | |
tree | 1c629b3391ffc1b8fd48605f9c939b2d516408c9 /src/node_crypto_bio.cc | |
parent | 56d9c48573e4bfe98021fc0c678e20b90538c976 (diff) | |
download | node-new-4536b27ac1b71e92b26c5d4ba772ae8511db09eb.tar.gz |
crypto: do not deallocate embedded buffer
Diffstat (limited to 'src/node_crypto_bio.cc')
-rw-r--r-- | src/node_crypto_bio.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc index 389d281593..9d566fd6f3 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_); |