projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumerd: use-after-free of metadata bucket
[lttng-tools.git]
/
src
/
common
/
consumer
/
consumer-stream.c
diff --git
a/src/common/consumer/consumer-stream.c
b/src/common/consumer/consumer-stream.c
index 6fe91c2371f16d51836cce898a4eab4bc0cd8ff3..1edd908044c453ff5d436ad7da819b1b843ff5f6 100644
(file)
--- a/
src/common/consumer/consumer-stream.c
+++ b/
src/common/consumer/consumer-stream.c
@@
-670,6
+670,7
@@
struct lttng_consumer_stream *consumer_stream_create(
goto error;
}
goto error;
}
+ stream->send_node = CDS_LIST_HEAD_INIT(stream->send_node);
stream->chan = channel;
stream->key = stream_key;
stream->trace_chunk = trace_chunk;
stream->chan = channel;
stream->key = stream_key;
stream->trace_chunk = trace_chunk;
@@
-1059,6
+1060,8
@@
void consumer_stream_destroy(struct lttng_consumer_stream *stream,
{
assert(stream);
{
assert(stream);
+ cds_list_del_init(&stream->send_node);
+
/* Stream is in monitor mode. */
if (stream->monitor) {
struct lttng_consumer_channel *free_chan = NULL;
/* Stream is in monitor mode. */
if (stream->monitor) {
struct lttng_consumer_channel *free_chan = NULL;
This page took
0.023787 seconds
and
4
git commands to generate.