From: Jonathan Rajotte Date: Tue, 28 Jun 2016 20:16:54 +0000 (-0400) Subject: Fix: make sure ctrl & data url are set for post creation configuration X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=19ed61745e0f19a840c10d8765bc012f255e6063 Fix: make sure ctrl & data url are set for post creation configuration Signed-off-by: Jonathan Rajotte --- 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.