X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Furi.c;h=64437272bf3e0a8b51bf76a09e554546f1c61539;hb=1925ed698c6c5ce754d3d5a9cc2e8bb71d787cb7;hp=380e75dd33b4839b144181c35f341a2724ef0f4e;hpb=b2e24069c180c8dc1579d5770288039db18b7171;p=lttng-tools.git diff --git a/src/common/uri.c b/src/common/uri.c index 380e75dd3..64437272b 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -644,10 +644,12 @@ ssize_t uri_parse_str_urls(const char *ctrl_url, const char *data_url, set_default_uri_attr(&data_uris[0], LTTNG_STREAM_DATA); - ret = compare_destination(&ctrl_uris[0], &data_uris[0]); - if (ret != 0) { - ERR("Control and data destination mismatch"); - goto error; + if (ctrl_uris) { + ret = compare_destination(&ctrl_uris[0], &data_uris[0]); + if (ret != 0) { + ERR("Control and data destination mismatch"); + goto error; + } } }