Even more LDAP_PORT depends.

This commit is contained in:
Kurt Zeilenga 1998-11-30 04:06:59 +00:00
parent 40cb8d54c8
commit c0366d3c3b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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++;