Fix network buffer resize bug

Reviewers: mculinovic

Reviewed By: mculinovic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1541
This commit is contained in:
Matej Ferencevic 2018-08-14 15:53:46 +02:00
parent 94ad18326c
commit b448db245b

View File

@ -62,7 +62,7 @@ void Buffer::Written(size_t len) {
}
void Buffer::Resize(size_t len) {
if (len < data_.size()) return;
if (len <= data_.size()) return;
data_.resize(len, 0);
}