Fix null pointer dereference when destroying a UST session with no channels
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2011 06:17:12 +0000 (07:17 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2011 06:17:12 +0000 (07:17 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-sessiond/main.c

index f63c351550c05a52a4a09c22d5967b6417c21746..dd7ee0d4bdc04ecde16be3a2542be76d0c39a2ad 100644 (file)
@@ -362,6 +362,8 @@ static void teardown_ust_session(struct ltt_session *session)
 
        DBG("Tearing down UST session(s)");
 
+       if (!session->ust_session)
+               return;
        ret = ust_app_destroy_trace_all(session->ust_session);
        if (ret) {
                ERR("Error in ust_app_destroy_trace_all");
This page took 0.027304 seconds and 4 git commands to generate.