]> git.sur5r.net Git - openldap/commitdiff
Removed missleading comments in ldap_chain_uri_cmp/_dup.
authorRalf Haferkamp <ralf@openldap.org>
Wed, 9 Mar 2011 16:07:54 +0000 (16:07 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Wed, 9 Mar 2011 16:07:54 +0000 (16:07 +0000)
Likely a copy and paste left over.

servers/slapd/back-ldap/chain.c

index f1f662ea89ed0e69fa55c4371f7fa709971e8461..2b98668d3f8eb2e433467a1c141cae2876c222cd 100644 (file)
@@ -225,7 +225,6 @@ ldap_chain_uri_cmp( const void *c1, const void *c2 )
        assert( !BER_BVISNULL( &li2->li_bvuri[ 0 ] ) );
        assert( BER_BVISNULL( &li2->li_bvuri[ 1 ] ) );
 
-       /* If local DNs don't match, it is definitely not a match */
        return ber_bvcmp( &li1->li_bvuri[ 0 ], &li2->li_bvuri[ 0 ] );
 }
 
@@ -243,11 +242,10 @@ ldap_chain_uri_dup( void *c1, void *c2 )
        assert( !BER_BVISNULL( &li2->li_bvuri[ 0 ] ) );
        assert( BER_BVISNULL( &li2->li_bvuri[ 1 ] ) );
 
-       /* Cannot have more than one shared session with same DN */
        if ( ber_bvcmp( &li1->li_bvuri[ 0 ], &li2->li_bvuri[ 0 ] ) == 0 ) {
                return -1;
        }
-               
+
        return 0;
 }