]> git.sur5r.net Git - openldap/commitdiff
ldap_is_ldaps_url takes a char *. Is there a better fix, since the ur
authorMark Valence <mrv@openldap.org>
Wed, 7 Jun 2000 17:28:01 +0000 (17:28 +0000)
committerMark Valence <mrv@openldap.org>
Wed, 7 Jun 2000 17:28:01 +0000 (17:28 +0000)
l is already parsed?

servers/slapd/daemon.c

index 5dc5aaaa1337f14e967ff82d82e0790fab0fb0d5..aa69d39dfaa4b6d27f47fc5d179cb7d197c833b5 100644 (file)
@@ -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;