diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index 8fa21f6752..43a4bcd90b 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -339,7 +339,7 @@ parse_replica_line( ri->ri_port = atoi( hp ); } if ( ri->ri_port <= 0 ) { - ri->ri_port = LDAP_PORT; + ri->ri_port = 0; } ri->ri_hostname = strdup( val ); gots |= GOT_HOST; diff --git a/servers/slurpd/re.c b/servers/slurpd/re.c index c7358fddc1..5792850d7e 100644 --- a/servers/slurpd/re.c +++ b/servers/slurpd/re.c @@ -293,7 +293,7 @@ get_repl_hosts( if ( str_parse_line( line, &type, &value, &len ) < 0 ) { return( NULL ); } - port = LDAP_PORT; + port = 0; if (( p = strchr( value, ':' )) != NULL ) { *p = '\0'; p++;