]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb2/alias.c
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
[openldap] / servers / slapd / back-bdb2 / alias.c
index 89834748fd2d53a8030ff4b3c8903467526acae0..3de54b9bf0b3eb1c07d3553d4c46cc29a7d153e3 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenLDAP$ */
 /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
@@ -226,7 +227,7 @@ static char* get_alias_dn(
        /* 
         * aliasedObjectName should be SINGLE-VALUED with a single value. 
         */                     
-       if ( a->a_vals[0] == NULL || a->a_vals[0]->bv_val != NULL ) {
+       if ( a->a_vals[0] == NULL || a->a_vals[0]->bv_val == NULL ) {
                /*
                 * there was an aliasedobjectname defined but no data.
                 */