mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 14:25:24 -05:00
ldap_is_ldaps_url takes a char *. Is there a better fix, since the ur
l is already parsed?
This commit is contained in:
parent
13ddec656f
commit
185641cb12
1 changed files with 2 additions and 2 deletions
|
|
@ -218,7 +218,7 @@ static Listener * open_listener( const char* url )
|
|||
}
|
||||
|
||||
#ifndef HAVE_TLS
|
||||
if( ldap_is_ldaps_url( lud ) ) {
|
||||
if( ldap_is_ldaps_url( url ) ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"daemon: TLS not supported (%s)\n",
|
||||
url, 0, 0 );
|
||||
|
|
@ -231,7 +231,7 @@ static Listener * open_listener( const char* url )
|
|||
}
|
||||
|
||||
#else
|
||||
l.sl_is_tls = ldap_is_ldaps_url( lud );
|
||||
l.sl_is_tls = ldap_is_ldaps_url( url );
|
||||
|
||||
if(! lud->lud_port ) {
|
||||
lud->lud_port = l.sl_is_tls ? LDAPS_PORT : LDAP_PORT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue