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>
Wed, 10 Apr 2013 12:55:10 +0000 (16:55 +0400)
commit798d1772c09c718b6c9d350dd03d0461155c725a
treeb7089180e2308fafb80a426a88c18d748ba163f2
parent62a214268ae39aea394ce46cb8eb53d0bdb15f99
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