From 972ccbeb3d6765c2add13b7b4da10c9fb6fb2c9c Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 20 Mar 2019 15:01:50 +0100 Subject: [HICN-133] Fix return of number of produced packet of produce(). Change-Id: I157d858ce2d7eeaa16f404fcfee9f51a9e6b777b Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/interfaces/socket_producer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport/src/hicn/transport') 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) { -- cgit 1.2.3-korg