From 19ed61745e0f19a840c10d8765bc012f255e6063 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 28 Jun 2016 16:16:54 -0400 Subject: [PATCH] Fix: make sure ctrl & data url are set for post creation configuration Signed-off-by: Jonathan Rajotte --- src/bin/lttng/commands/create.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 707f5ee7d..f020fff63 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -326,10 +326,14 @@ static int create_session_basic (const char *session_name, case OUTPUT_LOCAL: break; case OUTPUT_NET: + if (!ctrl_url || !data_url) { + break; + } + if (session_type == SESSION_SNAPSHOT) { ret = add_snapshot_output(session_name, ctrl_url, data_url); - } else if (ctrl_url && data_url) { + } else { /* * Normal sessions and live sessions behave the same way * regarding consumer url. -- 2.34.1