]> git.sur5r.net Git - openldap/commitdiff
fix suffix alias compare in config.c, logic was reversed. The suffix alias
authorWill Ballantyne <willb@openldap.org>
Wed, 27 Jan 1999 04:58:02 +0000 (04:58 +0000)
committerWill Ballantyne <willb@openldap.org>
Wed, 27 Jan 1999 04:58:02 +0000 (04:58 +0000)
is now ignored if it is the same as the real suffix.

servers/slapd/config.c

index ce5ddcdfb660fc3b19595b8f0b32347d8d1e3e3e..6dcaae3d42f3bf08a048b9d1804bb433176f99b3 100644 (file)
@@ -189,7 +189,7 @@ read_config( char *fname, Backend **bep, FILE *pfp )
                                 (void) dn_normalize( aliased_dn );
 
 
-                                                               if ( strcasecmp( alias, aliased_dn) ) {
+                                                               if ( strcasecmp( alias, aliased_dn) == 0 ) {
                                        Debug( LDAP_DEBUG_ANY,
 "%s: line %d: suffixAlias %s is not different from aliased dn (ignored)\n",
                                     fname, lineno, alias );