Switch RSYNC_PORT to -1 in check_for_hostspec().
authorWayne Davison <wayned@samba.org>
Wed, 8 Apr 2020 02:21:37 +0000 (19:21 -0700)
committerWayne Davison <wayned@samba.org>
Wed, 8 Apr 2020 02:21:37 +0000 (19:21 -0700)
options.c

index 2db357e272727c76e3a090f6240a844c54687bdc..99d3627ad429768e9d2b20027518f1bcdfa2cfa0 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2937,7 +2937,7 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr)
 
        if (*path == ':') {
                if (port_ptr && !*port_ptr)
-                       *port_ptr = RSYNC_PORT;
+                       *port_ptr = -1;
                return path + 1;
        }
        if (port_ptr)