projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: miscellaneous memory handling fixes
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl-health.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl-health.c
b/src/lib/lttng-ctl/lttng-ctl-health.c
index 534c01c023307ea2eb6bd6272b05fa2e601d2ce5..ba9aac05a42bfb5493efb1dbf67d597c799d55b6 100644
(file)
--- 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;
}
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) {
sock = lttcomm_connect_unix_sock(health->health_sock_path);
if (sock < 0) {
if (tracing_group) {
@@
-272,6
+272,7
@@
retry:
goto error;
}
goto error;
}
+ memset(&msg, 0, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
msg.cmd = HEALTH_CMD_CHECK;
ret = lttcomm_send_unix_sock(sock, (void *)&msg, sizeof(msg));
This page took
0.027076 seconds
and
5
git commands to generate.