Fix: lttng-live parse url port check
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Feb 2014 13:08:29 +0000 (08:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Feb 2014 13:08:29 +0000 (08:08 -0500)
Ensure there is a port number after the ':' delimitor.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/lttng-live/lttng-live-plugin.c

index d02b799a09d759e22504dee26112fb01d0ecdbf4..608a6dab7321382bf79c8ddff5c7945075d38b44 100644 (file)
@@ -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 '/':
This page took 0.024664 seconds and 4 git commands to generate.