]> git.sur5r.net Git - openldap/commitdiff
sanity check
authorPierangelo Masarati <ando@openldap.org>
Sat, 13 Nov 2004 17:27:15 +0000 (17:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 13 Nov 2004 17:27:15 +0000 (17:27 +0000)
servers/slapd/overlays/rwm.c

index caa0d462b9338ac37bd73797b5dc66e13d759a7d..11b4da663534c10c7e8e0694c767d8364f2db17b 100644 (file)
@@ -1037,6 +1037,15 @@ rwm_suffixmassage_config(
         * defined as a valid suffix for the current server
         */
        if ( argc == 2 ) {
+               if ( be->be_suffix == NULL ) {
+                       fprintf( stderr, "%s: line %d: "
+                                      " \"suffixMassage [<suffix>]"
+                                      " <massaged suffix>\" without "
+                                      "<suffix> part requires database "
+                                      "suffix be defined first.\n",
+                               fname, lineno );
+                       return 1;
+               }
                bvnc = be->be_suffix[ 0 ];
                massaged = 1;