When parsing a literal IPv6 address in square brackets, pass the
[rsync/rsync.git] / options.c
index 4a5c65c..ec57901 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1811,7 +1811,6 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr)
        }
 
        if (*s == '[' && (p = strchr(s, ']')) != NULL && p[1] == ':') {
-               s++;
                *p = '\0';
                not_host = strchr(s, '/') || !strchr(s, ':');
                *p = ']';