Fix: wrong data port when listing session's URI
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 4fcd6a4feafdf2eae0b1e4393dd69ecfd6716d5e..5d2cba1d467befbde02cfcc44183304303259421 100644 (file)
@@ -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. */
This page took 0.023218 seconds and 4 git commands to generate.