aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-12-19 15:32:37 +0100
committerMauro Sardara <msardara@cisco.com>2019-12-19 15:32:37 +0100
commit8112f87332232a707b46897fad3286db32abd077 (patch)
tree98099cbda7e82065f5a388c188df2f59c9aa6e46 /libtransport
parentee4e2645e36a34ee736d320832349bcfa54ab306 (diff)
[HICN-463] Initialize memory before sending message to hicn-light-forwarder
Change-Id: I4cfd1d45fb754d9efb71ff80ae97ca4fe27e47a2 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
index 7047a3a67..2a02a2ba8 100644
--- a/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
+++ b/libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
@@ -91,7 +91,7 @@ RouteToSelfCommand createCommandRoute(std::unique_ptr<sockaddr> &&addr,
}
DeleteSelfConnectionCommand createCommandDeleteConnection() {
- DeleteSelfConnectionCommand command;
+ DeleteSelfConnectionCommand command = {0};
fillCommandHeader((CommandHeader *)&command);
command.command_id = delete_connection_command;