Fix: miscellaneous memory handling fixes
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 01e54d2eae795a35e87d94dd6f06b51ef96be3ac..8a5cbdfcb550f86a2010586e6eed924d19232861 100644 (file)
@@ -300,6 +300,8 @@ void *thread_manage_health(void *data)
                goto error;
        }
 
+       lttng_relay_notify_ready();
+
        while (1) {
                DBG("Health check ready");
 
@@ -366,7 +368,7 @@ restart:
 
                assert(msg.cmd == HEALTH_CMD_CHECK);
 
-               reply.ret_code = 0;
+               memset(&reply, 0, sizeof(reply));
                for (i = 0; i < NR_HEALTH_RELAYD_TYPES; i++) {
                        /*
                         * health_check_state return 0 if thread is in
This page took 0.022677 seconds and 4 git commands to generate.