Skip to content
Snippets Groups Projects
Commit 301ed527 authored by Valerio Pastore's avatar Valerio Pastore
Browse files

fix dadling pointer buff

parent 5ccc59ba
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ int TCPProtocol::rcvPacketFromCli(PacketLib::BasePacket<Container,Value> &pack){
rec+= recv(this->fd_sock, &buff[headerSize], pack.getPayloadSize() + pack.getTailSize(), MSG_WAITALL);
pack.copyToBinaryPointer(&buff[headerSize], pack.getPayloadSize() + pack.getTailSize(), headerSize);
}
delete buff;
return rec;
}
template<typename Value, template<typename> typename Container>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment