From 9b62605a5ab66cf8c83b164add7088894ff8ec3f Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Tue, 26 Feb 2013 22:49:55 -0500 Subject: Make _sure_ we're not making assumptions about ZNotice_ts on the stack --- zhm/zhm_server.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zhm') diff --git a/zhm/zhm_server.c b/zhm/zhm_server.c index 0cce960..4c58428 100644 --- a/zhm/zhm_server.c +++ b/zhm/zhm_server.c @@ -38,6 +38,7 @@ send_boot_notice(char *op) ZNotice_t notice; Code_t ret; + memset(¬ice, 0, sizeof(ZNotice_t)); /* Set up server notice */ notice.z_kind = HMCTL; notice.z_port = cli_port; @@ -69,6 +70,7 @@ send_flush_notice(char *op) ZNotice_t notice; Code_t ret; + memset(¬ice, 0, sizeof(ZNotice_t)); /* Set up server notice */ notice.z_kind = HMCTL; notice.z_port = cli_port; -- cgit v1.2.3