summaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-03-20 15:01:50 +0100
committerMauro Sardara <msardara@cisco.com>2019-03-20 15:01:50 +0100
commit972ccbeb3d6765c2add13b7b4da10c9fb6fb2c9c (patch)
tree72cad8e2d887cdaa01364029c8124b6566f27932 /libtransport/src
parent8ede92527fac95d4f4bd5f686189a5d35f996193 (diff)
[HICN-133] Fix return of number of produced packet of produce().
Change-Id: I157d858ce2d7eeaa16f404fcfee9f51a9e6b777b Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/hicn/transport/interfaces/socket_producer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/interfaces/socket_producer.cc b/libtransport/src/hicn/transport/interfaces/socket_producer.cc
index 7a513349d..3f9d4959d 100644
--- a/libtransport/src/hicn/transport/interfaces/socket_producer.cc
+++ b/libtransport/src/hicn/transport/interfaces/socket_producer.cc
@@ -314,7 +314,7 @@ uint32_t ProducerSocket::produce(Name content_name, const uint8_t *buf,
buffer_size);
}
- return current_segment;
+ return current_segment - start_offset;
}
void ProducerSocket::asyncProduce(ContentObject &content_object) {