diff options
author | imarom <imarom@cisco.com> | 2016-07-28 16:20:37 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-07-28 16:20:37 +0300 |
commit | 81c896604a50486d8b658dc559f7b98492d778e5 (patch) | |
tree | a5a6cab26c695b21e176d2f191eda4949e124171 | |
parent | 72ff70e2b51f293092bd3c148eea0a4439c1b29e (diff) |
RPC commands were not really zipped (used a padded length)
https://trex-tgn.cisco.com/youtrack/issue/trex-233
-rw-r--r-- | src/rpc-server/trex_rpc_zip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc-server/trex_rpc_zip.cpp b/src/rpc-server/trex_rpc_zip.cpp index ef5c4834..f6da00ef 100644 --- a/src/rpc-server/trex_rpc_zip.cpp +++ b/src/rpc-server/trex_rpc_zip.cpp @@ -116,7 +116,7 @@ TrexRpcZip::compress(const std::string &input, std::string &output) { header->magic = htonl(G_HEADER_MAGIC); header->uncmp_size = htonl(input.size()); - output.append((const char *)header, bound_size); + output.append((const char *)header, sizeof(header_st) + destLen); delete [] buffer; |