]> git.sur5r.net Git - openldap/commitdiff
suffix must be present (ITS#3901)
authorPierangelo Masarati <ando@openldap.org>
Thu, 28 Jul 2005 16:54:49 +0000 (16:54 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 28 Jul 2005 16:54:49 +0000 (16:54 +0000)
servers/slapd/back-bdb/init.c

index 282503a75ef4f5d7a5dc7c538650d8bced02372f..581fe1abd6354503258d41e932117cc54288d197 100644 (file)
@@ -270,6 +270,13 @@ bdb_db_open( BackendDB *be )
        char path[MAXPATHLEN];
        char *ptr;
 
+       if ( be->be_suffix == NULL ) {
+               Debug( LDAP_DEBUG_ANY,
+                       "bdb_db_open: need suffix\n",
+                       0, 0, 0 );
+               return -1;
+       }
+
        Debug( LDAP_DEBUG_ARGS,
                "bdb_db_open: %s\n",
                be->be_suffix[0].bv_val, 0, 0 );