summaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2017-11-09 05:18:04 -0800
committerNeale Ranns <nranns@cisco.com>2017-11-10 12:33:07 +0000
commit814b47b5d0877d5860375dbcdaf19252477a6722 (patch)
tree94d29b39fb1ae84bd6a306fdb81b9b1faf7c7cab /src/vpp-api
parenta2a7db8c604f625b9205bcf721dd556292b6c297 (diff)
VOM: memset DHCP hostname in VPP API
Change-Id: I74886c31f8ceba2561679513560cf5ae46757236 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/vom/dhcp_config_cmds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/vom/dhcp_config_cmds.cpp b/src/vpp-api/vom/dhcp_config_cmds.cpp
index 8e81a27f96e..144df986d37 100644
--- a/src/vpp-api/vom/dhcp_config_cmds.cpp
+++ b/src/vpp-api/vom/dhcp_config_cmds.cpp
@@ -48,6 +48,7 @@ bind_cmd::issue(connection& con)
payload.pid = getpid();
payload.want_dhcp_event = 1;
+ memset(payload.hostname, 0, sizeof(payload.hostname));
memcpy(payload.hostname, m_hostname.c_str(),
std::min(sizeof(payload.hostname), m_hostname.length()));