From 814b47b5d0877d5860375dbcdaf19252477a6722 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 9 Nov 2017 05:18:04 -0800 Subject: VOM: memset DHCP hostname in VPP API Change-Id: I74886c31f8ceba2561679513560cf5ae46757236 Signed-off-by: Neale Ranns --- src/vpp-api/vom/dhcp_config_cmds.cpp | 1 + 1 file changed, 1 insertion(+) 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())); -- cgit 1.2.3-korg