diff --git a/src/connectionimpl.cpp b/src/connectionimpl.cpp index 29da84e..9fbf4c7 100644 --- a/src/connectionimpl.cpp +++ b/src/connectionimpl.cpp @@ -123,7 +123,8 @@ uint64_t ConnectionImpl::parse(const Buffer &buffer) try { // try to recognize the frame - ReceivedFrame receivedFrame(ReducedBuffer(buffer, processed), _maxFrame); + ReducedBuffer reduced_buf(buffer, processed); + ReceivedFrame receivedFrame(reduced_buf, _maxFrame); // do we have the full frame? if (receivedFrame.complete())