Commit c0366d3c authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Even more LDAP_PORT depends.

parent 40cb8d54
......@@ -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;
......
......@@ -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++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment