crypto: fix changing buffers in bio
authorFedor Indutny <fedor.indutny@gmail.com>
Sat, 6 Apr 2013 19:26:00 +0000 (23:26 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Mon, 8 Apr 2013 11:51:55 +0000 (15:51 +0400)
commitba0f7b8066cb4dc8cb3cd4931e52aa94af40a709
tree552f7f8a6afbcc13d4b51b901ae33f84a5b50066
parent8c8ebe49b62c47b0ac87d697d0bc3515604667c3
crypto: fix changing buffers in bio

We should go to next buffer if *current* one is full, not the next one.
Otherwise we may hop through buffers and written data will become
interleaved, which will lead to failure.
src/node_crypto_bio.cc