X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fstream.c;h=335a1cf5f79de497f3002beb3ae0a2a983da355f;hp=cbd7ceb88d4874a9866b2b4973d111f174d80edc;hb=ce3f3ba3aee62c0a317b448c2f19578ab7f057e4;hpb=a98e236e95719aa9c777a8cb1569a66daf0d576f diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index cbd7ceb88..335a1cf5f 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -446,6 +446,10 @@ void print_relay_streams(void) struct lttng_ht_iter iter; struct relay_stream *stream; + if (!relay_streams_ht) { + return; + } + rcu_read_lock(); cds_lfht_for_each_entry(relay_streams_ht->ht, &iter.iter, stream, node.node) {