mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix bug # 152852 - referrals: port 0 used by default instead of port 389.
This commit is contained in:
parent
9effd97abe
commit
398333b8db
@ -1021,12 +1021,17 @@ chase_one_referral( LDAP *ld, LDAPRequest *lr, LDAPRequest *origreq,
|
||||
"chase_one_referral: using port (%d) from original "
|
||||
"request on new request\n",
|
||||
srv->lsrv_port, 0, 0);
|
||||
} else {
|
||||
} else if ( ludp->lud_port != 0 ) {
|
||||
srv->lsrv_port = ludp->lud_port;
|
||||
LDAPDebug( LDAP_DEBUG_TRACE,
|
||||
"chase_one_referral: using port (%d) as specified on "
|
||||
"new request\n",
|
||||
srv->lsrv_port, 0, 0);
|
||||
} else {
|
||||
srv->lsrv_port = secure ? LDAPS_PORT : LDAP_PORT;
|
||||
LDAPDebug( LDAP_DEBUG_TRACE,
|
||||
"chase_one_referral: using default port (%d)\n",
|
||||
srv->lsrv_port, 0, 0 );
|
||||
}
|
||||
|
||||
if ( secure ) {
|
||||
|
Loading…
Reference in New Issue
Block a user