From: David Goulet Date: Mon, 6 May 2013 16:06:52 +0000 (-0400) Subject: Fix: wrong data port when listing session's URI X-Git-Tag: v2.2.0-rc2~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bef08707d594ea79f311ff04d470436724670754;p=lttng-tools.git Fix: wrong data port when listing session's URI Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 4fcd6a4fe..5d2cba1d4 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -110,7 +110,7 @@ static int build_network_session_path(char *dst, size_t size, tmp_urls, kdata_port, tmp_uurl, udata_port); } else { int dport; - if (kuri) { + if (kuri || (!kuri && !uuri)) { dport = kdata_port; } else { /* No kernel URI, use the UST port. */