summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/dhcp_config_cmds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/vom/dhcp_config_cmds.cpp')
-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()));