X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=0e9c52e835dc594d2fa773452045208a26ea3cac;hp=c47c0ff08239f9c80ccb9a8fae286034def197fc;hb=f96e4545bd7a4dd9c58eb7e8a42eafe0b18089ad;hpb=4dc3dfc55223dae057447c03a1e7aadc2c177b3a diff --git a/src/common/consumer.c b/src/common/consumer.c index c47c0ff08..0e9c52e83 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -720,6 +720,8 @@ struct consumer_relayd_sock_pair *consumer_allocate_relayd_sock_pair( obj->net_seq_idx = net_seq_idx; obj->refcount = 0; obj->destroy_flag = 0; + obj->control_sock.sock.fd = -1; + obj->data_sock.sock.fd = -1; lttng_ht_node_init_u64(&obj->node, obj->net_seq_idx); pthread_mutex_init(&obj->ctrl_sock_mutex, NULL);