Fix: handle invalid URL passed to lttng_create_session_live
authorDavid Goulet <dgoulet@efficios.com>
Tue, 4 Feb 2014 19:52:49 +0000 (14:52 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 4 Feb 2014 19:56:16 +0000 (14:56 -0500)
commit1c488f632753020069018ed4d430673ef0a87fc2
treea86a033fc7cac3713e7f96b9c9ac7fcb1cdd47f9
parent3cca94948b7452a4a77bb6d46cc10ff99ed60a52
Fix: handle invalid URL passed to lttng_create_session_live

uri_parse_str_urls() returns 0 if the URL passed is NULL thus using
lttng_create_session_live() without an URL is invalid.

Reported-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c
This page took 0.024436 seconds and 4 git commands to generate.