]> git.sur5r.net Git - openldap/commitdiff
fix malformed test
authorPierangelo Masarati <ando@openldap.org>
Sat, 5 Jan 2002 15:44:08 +0000 (15:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 5 Jan 2002 15:44:08 +0000 (15:44 +0000)
servers/slapd/config.c

index dfd6fab945c8aa74129a22eb7b24de7cc23f2dfb..65a7c3ee18755420e044a802c0bb74402f82f940 100644 (file)
@@ -1055,7 +1055,7 @@ read_config( const char *fname )
 
                        tmp_be = select_backend( &nalias, 0, 0 );
                        free( nalias.bv_val );
-                       if ( tmp_be != be ) {
+                       if ( tmp_be && tmp_be != be ) {
 #ifdef NEW_LOGGING
                                LDAP_LOG(( "config", LDAP_LEVEL_INFO,
                                        "%s: line %d: suffixAlias served by a preceeding "
@@ -1092,7 +1092,7 @@ read_config( const char *fname )
 
                        tmp_be = select_backend( &naliased, 0, 0 );
                        free( naliased.bv_val );
-                       if ( tmp_be != be ) {
+                       if ( tmp_be && tmp_be != be ) {
 #ifdef NEW_LOGGING
                                LDAP_LOG(( "config", LDAP_LEVEL_INFO,
                                        "%s: line %d: suffixAlias derefs to a different backend "