From 2a6d197b310aef3510ed3173236ce266381e96ee Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 28 Feb 2014 08:08:29 -0500 Subject: [PATCH] Fix: lttng-live parse url port check Ensure there is a port number after the ':' delimitor. Signed-off-by: Mathieu Desnoyers --- formats/lttng-live/lttng-live-plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c index d02b799a..608a6dab 100644 --- a/formats/lttng-live/lttng-live-plugin.c +++ b/formats/lttng-live/lttng-live-plugin.c @@ -135,6 +135,10 @@ int parse_url(const char *path, struct lttng_live_ctx *ctx) if (ret < 0) { goto end; } + } else { + fprintf(stderr, "[error] Missing port number after delimitor ':'\n"); + ret = -1; + goto end; } break; case '/': -- 2.34.1