crypto: move write_head in bio's Reset() method
authorFedor Indutny <fedor.indutny@gmail.com>
Sat, 6 Apr 2013 19:26:24 +0000 (23:26 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 10 Apr 2013 12:55:11 +0000 (16:55 +0400)
src/node_crypto_bio.cc

index d69eeb8..52e5e78 100644 (file)
@@ -301,6 +301,7 @@ void NodeBIO::Reset() {
 
     read_head_ = read_head_->next_;
   }
+  write_head_ = read_head_;
   assert(length_ == 0);
 }