Fix: lttng-live should accept 0 in addresses
authorJulien Desfossez <jdesfossez@efficios.com>
Tue, 7 Jan 2014 19:16:03 +0000 (14:16 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Jan 2014 19:22:45 +0000 (14:22 -0500)
Fixes #708

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

index 44f7d596f8eb5200bf77ed8264b4c9f9e91f9979..8f734f7bd9906e9f844bd86bd2cb4a21681dd318 100644 (file)
@@ -55,7 +55,7 @@ static int parse_url(const char *path, char *hostname, int *port,
        }
        /* TODO : parse for IPv6 as well */
        /* Parse the hostname or IP */
-       ret = sscanf(path + proto_offset, "%[a-zA-Z.1-9%-]%s",
+       ret = sscanf(path + proto_offset, "%[a-zA-Z.0-9%-]%s",
                hostname, remain);
        if (ret == 2) {
                /* Optional port number */
This page took 0.025628 seconds and 4 git commands to generate.