crypto: fix another over-run in bio
authorFedor Indutny <fedor.indutny@gmail.com>
Sat, 3 Aug 2013 09:09:02 +0000 (13:09 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Sat, 3 Aug 2013 10:04:55 +0000 (14:04 +0400)
commite5791f74f0bb3f52efa5429b5ae9425cbde46f97
tree73ba96dfa22509d0619097d9614f98954f24dcfa
parent350fc8064e3dfbd5723f5d952102a010cae94510
crypto: fix another over-run in bio

When doing `FreeEmpty`, `NodeBIO` skips pre-allocated `head_` buffer.
However this might lead to double-freeing buffers since in `~NodeBIO()`
we're starting deallocation from `head_` buffer.
src/node_crypto_bio.cc