summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-02-26 22:49:55 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2013-02-26 22:49:55 -0500
commit9b62605a5ab66cf8c83b164add7088894ff8ec3f (patch)
tree9831ad74eca82db9d6435badea0964da2b09974f /zhm
parent154fba1677f7319e60fc717780669848e141f4b4 (diff)
Make _sure_ we're not making assumptions about ZNotice_ts on the stack
Diffstat (limited to 'zhm')
-rw-r--r--zhm/zhm_server.c2
1 files changed, 2 insertions, 0 deletions
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(&notice, 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(&notice, 0, sizeof(ZNotice_t));
/* Set up server notice */
notice.z_kind = HMCTL;
notice.z_port = cli_port;