aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-10-09 12:54:08 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-10-09 12:54:08 +0200
commit1e0e7377bb2854b49b5e52ec5a39b818640f644b (patch)
treecef1a95a241de9ddf7c326179d51ce671019b2d1 /libtransport/src
parentd61668ec9ee63307eef161e197e09981f327b984 (diff)
[HICN-311] Incorrect copying of ip_prefix_t data & uninitialized bytes causes invalid writes
Change-Id: Ia171dac11f65dab295b3523222145215f21a6f4f Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'libtransport/src')
-rw-r--r--libtransport/src/hicn/transport/core/forwarder_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/core/forwarder_interface.h b/libtransport/src/hicn/transport/core/forwarder_interface.h
index 6bcdaafc1..a89ed8a3c 100644
--- a/libtransport/src/hicn/transport/core/forwarder_interface.h
+++ b/libtransport/src/hicn/transport/core/forwarder_interface.h
@@ -50,7 +50,9 @@ class ForwarderInterface {
output_interface_(""),
content_store_reserved_(standard_cs_reserved) {
inet_address_.family = AF_INET;
+ inet_address_.len = IPV4_ADDR_LEN;
inet6_address_.family = AF_INET6;
+ inet6_address_.len = IPV6_ADDR_LEN;
}
public: