Fix network buffer resize bug
Reviewers: mculinovic Reviewed By: mculinovic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1541
This commit is contained in:
parent
94ad18326c
commit
b448db245b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user