Fix: Initialize global agent_apps_ht_by_sock on session daemon launch
[lttng-tools.git] / src / bin / lttng-sessiond / agent.c
index 1c46bec4e196eeac359c891e8245b38c58d9f2f7..e89adbb10941324c8eea3dc920a3a91e954ce894 100644 (file)
@@ -1009,6 +1009,9 @@ void agent_app_ht_clean(void)
        struct lttng_ht_node_ulong *node;
        struct lttng_ht_iter iter;
 
+       if (!agent_apps_ht_by_sock) {
+               return;
+       }
        rcu_read_lock();
        cds_lfht_for_each_entry(agent_apps_ht_by_sock->ht, &iter.iter, node, node) {
                struct agent_app *app;
This page took 0.026042 seconds and 4 git commands to generate.