mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Even more LDAP_PORT depends.
This commit is contained in:
parent
40cb8d54c8
commit
c0366d3c3b
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user