Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
72ff70e
)
RPC commands were not really zipped (used a padded length)
author
imarom
<
[email protected]
>
Thu, 28 Jul 2016 13:20:37 +0000
(16:20 +0300)
committer
imarom
<
[email protected]
>
Thu, 28 Jul 2016 13:20:37 +0000
(16:20 +0300)
https://trex-tgn.cisco.com/youtrack/issue/trex-233
src/rpc-server/trex_rpc_zip.cpp
patch
|
blob
|
history
diff --git
a/src/rpc-server/trex_rpc_zip.cpp
b/src/rpc-server/trex_rpc_zip.cpp
index
ef5c483
..
f6da00e
100644
(file)
--- 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;