diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index f2a84b83f32de2..a889279f6c624b 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -491,8 +491,8 @@ bool TLSWrap::ClearIn() { // This can be skipped in the error case because no further writes // would succeed anyway. pending_cleartext_input_.insert(pending_cleartext_input_.end(), - &buffers[i], - &buffers[buffers.size()]); + buffers.begin() + i, + buffers.end()); } return false;