The new socket used to store the accept() socket was not initialized
making the close() failed if NO health check command was previously
done.
Reported-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
*/
static void *thread_manage_health(void *data)
{
- int sock = -1, new_sock, ret, i, pollfd, err = -1;
+ int sock = -1, new_sock = -1, ret, i, pollfd, err = -1;
uint32_t revents, nb_fd;
struct lttng_poll_event events;
struct lttcomm_health_msg msg;