summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:36:44 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:36:44 +0200
commitd01e13c9dee53c3ab4faf70a215f4d1dcfed9e87 (patch)
tree90975d8502a6c610a58f5d3cd8014bcf8443c0e9 /src/buffer.cc
parent87774d8981ae7a079492d8949e205065ba72a8e4 (diff)
MITM SSL Interception support using mbedtls
Diffstat (limited to 'src/buffer.cc')
-rw-r--r--src/buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.cc b/src/buffer.cc
index 4bde195..d220514 100644
--- a/src/buffer.cc
+++ b/src/buffer.cc
@@ -95,7 +95,7 @@ size_t Buffer::read(void* data, size_t max) {
if (avail == 0) return 0;
avail = std::min(avail, max);
memcpy(data, ptr, avail);
- commit(avail);
+ consume(avail);
return avail;
}