Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/apps/tcpip/storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ namespace tcpip
// ----------------------------------------------------------------------
Storage::Storage(const unsigned char packet[], int length)
{
// Length is calculated, if -1, or given
if (length == -1) length = sizeof(packet) / sizeof(unsigned char);
assert(length >= 0);

store.reserve(length);
// Get the content
Expand Down