X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.c;h=ba9aac05a42bfb5493efb1dbf67d597c799d55b6;hb=8eb7a5e2b9006c5f675c3809055e8abcdffcdb6f;hp=534c01c023307ea2eb6bd6272b05fa2e601d2ce5;hpb=e7b0d526e58a78291e456e42b5a911c5036e496c;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl-health.c b/src/lib/lttng-ctl/lttng-ctl-health.c index 534c01c02..ba9aac05a 100644 --- a/src/lib/lttng-ctl/lttng-ctl-health.c +++ b/src/lib/lttng-ctl/lttng-ctl-health.c @@ -260,7 +260,7 @@ retry: if (ret) { goto error; } - /* Connect to the sesssion daemon */ + /* Connect to component */ sock = lttcomm_connect_unix_sock(health->health_sock_path); if (sock < 0) { if (tracing_group) { @@ -272,6 +272,7 @@ retry: goto error; } + memset(&msg, 0, sizeof(msg)); msg.cmd = HEALTH_CMD_CHECK; ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));